X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-core%2Fsrc%2Fdetect.rs;h=caf590036dc43b245dd0d80b6c1e299ec2a464ca;hb=539a95437a897e54444842104293ff346a31f9c9;hp=0285e64a84ac6034a5c54326d8665d5c77d53557;hpb=4d477e238a982a986a8e32f23b405ff82b3feb41;p=nihav.git diff --git a/nihav-core/src/detect.rs b/nihav-core/src/detect.rs index 0285e64..caf5900 100644 --- a/nihav-core/src/detect.rs +++ b/nihav-core/src/detect.rs @@ -211,6 +211,17 @@ const DETECTORS: &[DetectConditions] = &[ extensions: ".bmv", conditions: &[], }, + DetectConditions { + demux_name: "bmv3", + extensions: ".bmv", + conditions: &[CheckItem{offs: 0, cond: &CC::Str(b"BMVi") }, + CheckItem{offs: 32, cond: &CC::Str(b"DATA")}], + }, + DetectConditions { + demux_name: "vmd", + extensions: ".vmd", + conditions: &[], + }, ]; pub fn detect_format(name: &str, src: &mut ByteReader) -> Option<(&'static str, DetectionScore)> {