]> git.nihav.org Git - nihav.git/commitdiff
nihav_registry/detect: slightly improve old QT MOV detection
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 19 Feb 2026 17:15:15 +0000 (18:15 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 19 Feb 2026 17:15:15 +0000 (18:15 +0100)
nihav-registry/src/detect.rs

index b06528cfea03b3552837b256dfc9cb9656349248..5d1bd47e1e662cb545264d858362b73e9c807e2e 100644 (file)
@@ -262,7 +262,8 @@ const DETECTORS: &[DetectConditions] = &[
         demux_name: "mov-macbin",
         extensions: ".mov,.bin",
         conditions: &[CheckItem{offs: 0, cond: &CC::Eq(Arg::Byte(0))},
-                      CheckItem{offs: 0x41, cond: &CC::Str(b"MooVPrMr")},
+                      CheckItem{offs: 0x41, cond: &CC::Str(b"MooV")},
+                      CheckItem{offs: 0x45, cond: &CC::Or(&CC::Str(b"PrMr"), &CC::Str(b"TVOD"))},
                       CheckItem{offs: 0x7A, cond: &CC::Eq(Arg::Byte(0x81))},
                       CheckItem{offs: 0x7B, cond: &CC::Eq(Arg::Byte(0x81))}],
     },