From: Kostya Shishkov Date: Mon, 24 Mar 2025 16:13:45 +0000 (+0100) Subject: avimux: report single plane for raw RGB formats X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=fff11a3721661f5cd18c1c81af57df5b150cae8b;p=nihav.git avimux: report single plane for raw RGB formats --- diff --git a/nihav-commonfmt/src/muxers/avi.rs b/nihav-commonfmt/src/muxers/avi.rs index 1b32ad4..a0ebb0b 100644 --- a/nihav-commonfmt/src/muxers/avi.rs +++ b/nihav-commonfmt/src/muxers/avi.rs @@ -272,7 +272,11 @@ impl<'a> MuxCore<'a> for AVIMuxer<'a> { self.bw.write_u32le(vinfo.width as u32)?; self.bw.write_u32le(vinfo.height as u32)?; if !vinfo.format.palette { - self.bw.write_u16le(vinfo.format.components as u16)?; + if strm.get_info().get_name() != "rawvideo-ms" { + self.bw.write_u16le(vinfo.format.components as u16)?; + } else { + self.bw.write_u16le(1)?; + } self.bw.write_u16le(vinfo.format.get_total_depth() as u16)?; } else { self.bw.write_u16le(1)?;