]> git.nihav.org Git - nihav.git/commitdiff
mov: allow handling of (normally) ignored chunks
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 24 Jul 2026 12:29:51 +0000 (14:29 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 24 Jul 2026 12:29:51 +0000 (14:29 +0200)
nihav-commonfmt/src/demuxers/mov/mod.rs

index e76a7ce4dd6384042dbad99ee4acab9479742e4a..d1153de7571afafcd1ecb14ddc455543966a10a4 100644 (file)
@@ -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;
                 }