]> git.nihav.org Git - nihav.git/commitdiff
mov: do not use one-to-one demuxing mode with non-empty sample map
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 8 Apr 2026 17:22:38 +0000 (19:22 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 8 Apr 2026 17:22:38 +0000 (19:22 +0200)
nihav-commonfmt/src/demuxers/mov/pktread.rs

index 035293189f46807663825f0765e384737279bd80..2185664327b5a122065932bc9be489a25ef704dc 100644 (file)
@@ -174,7 +174,7 @@ impl QTPacketDemuxer {
                     PacketMode::Complex
                 };
         }
-        if self.mode == PacketMode::AudioCBR && self.chunk_offsets.len() == self.chunk_sizes.len() {
+        if self.mode == PacketMode::AudioCBR && self.chunk_offsets.len() == self.chunk_sizes.len() && self.sample_map.is_empty() {
             self.mode = PacketMode::OneToOne;
         }
         self.is_data_stream = stream_type == StreamType::Data;