]> git.nihav.org Git - nihav.git/commitdiff
mov: relax check for flattened files
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 7 Oct 2026 13:55:09 +0000 (15:55 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 7 Oct 2026 13:55:09 +0000 (15:55 +0200)
nihav-commonfmt/src/demuxers/mov/mod.rs

index 8c195b20f31d740157f8799b5d32fb9994131662..e24b8d2b5b311710a72333a9a1441a5817125b20 100644 (file)
@@ -792,7 +792,7 @@ impl<'a> MOVDemuxer<'a> {
             if ret.is_err() { break; }
             let (ctype, size) = ret.unwrap();
             let size = if size == u64::MAX { self.file_size - self.src.tell() } else { size };
-            if size == 256-8 && ctype < 0x10000 {
+            if size == 256-8 && (ctype >> 24) == 0 {
                 println!("Probably an old flattened file, skipping garbage in the middle...");
                 self.src.read_skip(256 - 4)?;
                 old_flat_file = true;