]> git.nihav.org Git - nihav.git/commitdiff
nihav_codec_support/msstructs: do not check Cinepak header that strictly
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 25 Apr 2026 10:38:10 +0000 (12:38 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 25 Apr 2026 10:38:10 +0000 (12:38 +0200)
nihav-codec-support/src/codecs/msstructs.rs

index 1dc155849d31f2e178eebd8ff896448b5d92cde6..d5bec5ab4f3d25f230fb6e82877971f182938c9d 100644 (file)
@@ -38,7 +38,7 @@ impl MSBitmapInfo {
     /// Checks header for validity and returns the failed field name in case of error.
     pub fn validate(&self) -> Result<(), &'static str> {
         const KNOWN_BAD_FORMATS: &[&[u8; 4]] = &[
-            b"ZMBV", b"zmbv",
+            b"ZMBV", b"zmbv", b"CVID", b"cvid"
         ];
         if !(40..=(1 << 24)).contains(&self.bi_size) {
             return Err("bi_size");