Skip to content

Commit 19f50c2

Browse files
Zaggy1024kinetiknz
authored andcommitted
Return the correct AVIF alpha item bit depth.
There was a typo which made the avif_get_info API call return the primary item's bit depth for the alpha item.
1 parent 55eb92e commit 19f50c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mp4parse_capi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ fn mp4parse_avif_get_info_safe(context: &AvifContext) -> mp4parse::Result<Mp4par
11121112
let primary_item_bit_depth =
11131113
get_bit_depth(context.primary_item_bits_per_channel().unwrap_or(Ok(&[]))?);
11141114
let alpha_item_bit_depth =
1115-
get_bit_depth(context.primary_item_bits_per_channel().unwrap_or(Ok(&[]))?);
1115+
get_bit_depth(context.alpha_item_bits_per_channel().unwrap_or(Ok(&[]))?);
11161116

11171117
if let Some(sequence) = &context.sequence {
11181118
// Tracks must have track_id and samples

0 commit comments

Comments
 (0)