X-Git-Url: https://git.nihav.org/?p=nihav.git;a=blobdiff_plain;f=nihav-registry%2Fsrc%2Fdetect.rs;h=aeaa06d408be4996865e7e75732f17825a1aa3f5;hp=96b9440a83cc88b16377903d1ffe2d33d77c8beb;hb=bdf66deb2fd60973d0573a661c0a7ea62c7308c7;hpb=0bbe433e917f4253df8536bf5e583b07f71bf6c0 diff --git a/nihav-registry/src/detect.rs b/nihav-registry/src/detect.rs index 96b9440..aeaa06d 100644 --- a/nihav-registry/src/detect.rs +++ b/nihav-registry/src/detect.rs @@ -198,6 +198,21 @@ const DETECTORS: &[DetectConditions] = &[ &CC::Str(b"ON2fLIST")) }, ] }, + DetectConditions { + demux_name: "mov", + extensions: ".mov", + conditions: &[CheckItem{offs: 4, cond: &CC::Or(&CC::Or(&CC::Str(b"mdat"), + &CC::Str(b"moov")), + &CC::Str(b"ftyp")) }], + }, + DetectConditions { + demux_name: "mov", + extensions: ".mov", + conditions: &[CheckItem{offs: 0, cond: &CC::Str(b"\x00\x00\x00\x08wide") }, + CheckItem{offs: 12, cond: &CC::Or(&CC::Or(&CC::Str(b"mdat"), + &CC::Str(b"moov")), + &CC::Str(b"ftyp")) }], + }, DetectConditions { demux_name: "gdv", extensions: ".gdv",