From 29ff1c6eaf577f717e8c5036d1d0eae8ed5b5006 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Mon, 2 Feb 2026 17:58:36 +0100 Subject: [PATCH] nihav_registry/detect: improve MacBinary II MOV detection --- nihav-registry/src/detect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nihav-registry/src/detect.rs b/nihav-registry/src/detect.rs index 63db8c4..41702ed 100644 --- a/nihav-registry/src/detect.rs +++ b/nihav-registry/src/detect.rs @@ -251,7 +251,7 @@ const DETECTORS: &[DetectConditions] = &[ CheckItem{offs: 0x41, cond: &CC::Str(b"MooV")}, CheckItem{offs: 0x7A, cond: &CC::Eq(Arg::Byte(0x81))}, CheckItem{offs: 0x7B, cond: &CC::Eq(Arg::Byte(0x81))}, - CheckItem{offs: 0x84, cond: &CC::Str(b"mdat")}], + CheckItem{offs: 0x84, cond: &CC::Or(&CC::Str(b"mdat"), &CC::Str(b"moov"))}], }, DetectConditions { demux_name: "mov-resfork", -- 2.39.5