]> git.nihav.org Git - nihav.git/commitdiff
avi: support greyscale raw video
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 28 Aug 2026 14:49:44 +0000 (16:49 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 28 Aug 2026 14:49:44 +0000 (16:49 +0200)
nihav-commonfmt/src/demuxers/avi.rs

index 1885d03f661cbb23cf70ed50a56bdb42611520a8..a7c6313356464fb45ce44f540b69a68027331a0f 100644 (file)
@@ -905,6 +905,7 @@ fn find_raw_yuv_fmt(compr: &[u8; 4], vhdr: &mut NAVideoInfo) -> bool {
             b"I420" | b"IYUV" => ("yuv420p", false),
             b"YV12" => ("yuv420p", true),
             b"YVU9" => ("yuv410p", true),
+            b"Y800" | b"Y8  " => ("grey", false),
             _ => return false,
         };
     if let Ok(fmt) = NAPixelFormaton::from_str(fmt_name) {