From: Kostya Shishkov Date: Fri, 9 Oct 2026 10:26:57 +0000 (+0200) Subject: mov: warn about normally unsupported files X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=931f708c9c57dfca59b9669537e91c71f37ca5b7;p=nihav.git mov: warn about normally unsupported files --- diff --git a/nihav-commonfmt/src/demuxers/mov/mod.rs b/nihav-commonfmt/src/demuxers/mov/mod.rs index e24b8d2..f25596f 100644 --- a/nihav-commonfmt/src/demuxers/mov/mod.rs +++ b/nihav-commonfmt/src/demuxers/mov/mod.rs @@ -791,6 +791,11 @@ impl<'a> MOVDemuxer<'a> { let ret = read_chunk_header(self.src); if ret.is_err() { break; } let (ctype, size) = ret.unwrap(); + if self.demux_mode == DemuxMode::Normal && ctype == mktag!(b"mdat") && size == u64::MAX && self.src.tell() == 8 { + println!("mdat atom with no size at the very beginning of the file"); + println!("try nihav-movrender to extract streams from such file"); + return Err(DemuxerError::NotImplemented); + } let size = if size == u64::MAX { self.file_size - self.src.tell() } else { size }; if size == 256-8 && (ctype >> 24) == 0 { println!("Probably an old flattened file, skipping garbage in the middle...");