From: Kostya Shishkov Date: Mon, 27 Apr 2020 09:32:55 +0000 (+0200) Subject: registry: add detection for MOV format X-Git-Url: https://git.nihav.org/?p=nihav.git;a=commitdiff_plain;h=bdf66deb2fd60973d0573a661c0a7ea62c7308c7 registry: add detection for MOV format --- 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",