support Legend Entertainment Q format version 7
[nihav.git] / nihav-registry / src / detect.rs
index 0fb33a2af913dd2f1d1a1edd5728e624f6b0f61b..f79d063db8165c2d360cea58b728f34e6d2e308d 100644 (file)
@@ -272,7 +272,7 @@ const DETECTORS: &[DetectConditions] = &[
         demux_name: "legend-q",
         extensions: ".q",
         conditions: &[CheckItem{offs: 0, cond: &CC::Eq(Arg::U16LE(0x6839))},
-                      CheckItem{offs: 2, cond: &CC::In(Arg::Byte(3), Arg::Byte(5))}],
+                      CheckItem{offs: 2, cond: &CC::In(Arg::Byte(3), Arg::Byte(7))}],
     },
     DetectConditions {
         demux_name: "smush",
@@ -280,6 +280,13 @@ const DETECTORS: &[DetectConditions] = &[
         conditions: &[CheckItem{offs: 0, cond: &CC::Str(b"ANIM")},
                       CheckItem{offs: 8, cond: &CC::Str(b"AHDR")}],
     },
+    DetectConditions {
+        demux_name: "smush-mcmp",
+        extensions: ".imc",
+        conditions: &[CheckItem{offs: 0, cond: &CC::Str(b"MCMP")},
+                      CheckItem{offs: 6, cond: &CC::Eq(Arg::Byte(0))},
+                      CheckItem{offs: 7, cond: &CC::Eq(Arg::Byte(0))}],
+    },
     DetectConditions {
         demux_name: "smush",
         extensions: ".snm",