From: Kostya Shishkov Date: Mon, 2 Feb 2026 16:58:36 +0000 (+0100) Subject: nihav_registry/detect: improve MacBinary II MOV detection X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=29ff1c6eaf577f717e8c5036d1d0eae8ed5b5006;p=nihav.git nihav_registry/detect: improve MacBinary II MOV detection --- 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",