From bdf66deb2fd60973d0573a661c0a7ea62c7308c7 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 27 Apr 2020 11:32:55 +0200 Subject: [PATCH] registry: add detection for MOV format --- nihav-registry/src/detect.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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", -- 2.39.5