From: Kostya Shishkov Date: Fri, 24 Jul 2026 12:29:51 +0000 (+0200) Subject: mov: allow handling of (normally) ignored chunks X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=74807634e3b85dc4721d0a083c883ff6b88edd04;p=nihav.git mov: allow handling of (normally) ignored chunks --- diff --git a/nihav-commonfmt/src/demuxers/mov/mod.rs b/nihav-commonfmt/src/demuxers/mov/mod.rs index e76a7ce..d1153de 100644 --- a/nihav-commonfmt/src/demuxers/mov/mod.rs +++ b/nihav-commonfmt/src/demuxers/mov/mod.rs @@ -159,14 +159,13 @@ macro_rules! read_chunk_list { if br.tell() + size > list_end { break; } - if IGNORED_CHUNKS.contains(&ctype) { - br.skip64(size)?; - continue; - } let handler = $handlers.iter().find(|x| x.ctype == ctype); let read_size; if let Some(ref handler) = handler { read_size = (handler.parse)(self, br, size)?; + } else if IGNORED_CHUNKS.contains(&ctype) { + br.skip64(size)?; + continue; } else { read_size = 0; }