From: Kostya Shishkov Date: Wed, 21 Jan 2026 20:15:39 +0000 (+0100) Subject: avimux: report depth 16 for 15-bit content X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=b8a02fac275573b38838d78384d0a87543403b00;p=nihav.git avimux: report depth 16 for 15-bit content --- diff --git a/nihav-commonfmt/src/muxers/avi.rs b/nihav-commonfmt/src/muxers/avi.rs index bb622c8..307bbf0 100644 --- a/nihav-commonfmt/src/muxers/avi.rs +++ b/nihav-commonfmt/src/muxers/avi.rs @@ -277,7 +277,11 @@ impl<'a> MuxCore<'a> for AVIMuxer<'a> { } else { self.bw.write_u16le(1)?; } - self.bw.write_u16le(vinfo.format.get_total_depth() as u16)?; + let mut depth = vinfo.format.get_total_depth(); + if depth == 15 { + depth = 16; + } + self.bw.write_u16le(depth.into())?; } else { self.bw.write_u16le(1)?; self.bw.write_u16le(8)?;