aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-registry/src
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-11-25 17:44:38 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-11-25 17:44:38 +0100
commit88fd1059c144439b922c31baa61fcf3e93f608f0 (patch)
tree438b339361a56f690854a8fd7c01442f840ed078 /nihav-registry/src
parent7662c04c2bc4cf69113b0c4212dde88809d0299d (diff)
downloadnihav-88fd1059c144439b922c31baa61fcf3e93f608f0.tar.gz
mov: add support for MacBinary format
Diffstat (limited to 'nihav-registry/src')
-rw-r--r--nihav-registry/src/detect.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/nihav-registry/src/detect.rs b/nihav-registry/src/detect.rs
index bfe1d44..bb452b2 100644
--- a/nihav-registry/src/detect.rs
+++ b/nihav-registry/src/detect.rs
@@ -231,6 +231,15 @@ const DETECTORS: &[DetectConditions] = &[
&CC::Str(b"ftyp")) }],
},
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"MooV")},
+ CheckItem{offs: 0x7A, cond: &CC::Eq(Arg::Byte(0x81))},
+ CheckItem{offs: 0x7B, cond: &CC::Eq(Arg::Byte(0x81))},
+ CheckItem{offs: 0x84, cond: &CC::Str(b"mdat")}],
+ },
+ DetectConditions {
demux_name: "yuv4mpeg",
extensions: ".y4m",
conditions: &[CheckItem{offs: 0, cond: &CC::Str(b"YUV4MPEG2 ") }],