]> git.nihav.org Git - nihav.git/commitdiff
mov: mark streams without proper header as unknown data streams
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 19 Jul 2025 12:07:41 +0000 (14:07 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 19 Jul 2025 12:07:41 +0000 (14:07 +0200)
nihav-commonfmt/src/demuxers/mov.rs

index a1c3669750156334f431cbec40b142c3e3e7763e..1ec80233e8bfa111196bbe8c5bbc444d2096f0dd 100644 (file)
@@ -313,7 +313,10 @@ fn read_trak(dmx: &mut MOVDemuxer, strmgr: &mut StreamManager, size: u64) -> Dem
     let mut track = Track::new(dmx.cur_track as u32, dmx.tb_den);
     track.print_chunks = dmx.print_chunks;
     track.read_trak(dmx.src, size)?;
-    validate!(track.tkhd_found && track.stsd_found);
+    validate!(track.tkhd_found);
+    if !track.stsd_found {
+        track.stream = Some(NAStream::new(StreamType::Data, track.track_no, DUMMY_CODEC_INFO, track.tb_num, track.tb_den, 0));
+    }
     validate!(strmgr.get_stream_by_id(track.track_id).is_none());
     dmx.cur_track += 1;
     dmx.tracks.push(track);