]> git.nihav.org Git - nihav.git/commitdiff
nihav_registry/detect: add yet another detection case for MOV files
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 25 Sep 2026 10:34:13 +0000 (12:34 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 25 Sep 2026 10:34:13 +0000 (12:34 +0200)
nihav-registry/src/detect.rs

index aafd8d2ce714aa0a96c9031de66ba904cf480c97..0c5d5426e1be326e1376997dcb8e9e3a607dde11 100644 (file)
@@ -241,7 +241,8 @@ const DETECTORS: &[DetectConditions] = &[
         extensions: ".mov",
         conditions: &[CheckItem{offs: 4, cond: &CC::Or(&CC::Or(&CC::Str(b"mdat"),
                                                                &CC::Str(b"moov")),
-                                                               &CC::Str(b"ftyp")) }],
+                                                       &CC::Or(&CC::Str(b"ftyp"),
+                                                               &CC::Str(b"free"))) }],
     },
     DetectConditions {
         demux_name: "gif",