]> git.nihav.org Git - nihav.git/commitdiff
avimuxer: report 8-bit no-palette format (greyscale) as 24-bit
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 21 May 2026 16:26:45 +0000 (18:26 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 21 May 2026 16:26:45 +0000 (18:26 +0200)
nihav-commonfmt/src/muxers/avi.rs

index aec5baf3717e7e61ba55ca7b8351693cbd17f37d..fea2bb8f12d7cf052c50598f62164b1b89b4834b 100644 (file)
@@ -283,6 +283,9 @@ impl<'a> MuxCore<'a> for AVIMuxer<'a> {
                         if depth == 15 {
                             depth = 16;
                         }
+                        if depth == 8 {
+                            depth = 24;
+                        }
                         self.bw.write_u16le(depth.into())?;
                     } else {
                         self.bw.write_u16le(1)?;