From: Kostya Shishkov Date: Thu, 10 Oct 2024 16:45:14 +0000 (+0200) Subject: avi: fall back to the old index when ODML provides none X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=019d78266f214e6b2c2ca6fb9d6e7b249e4b5196;p=nihav.git avi: fall back to the old index when ODML provides none --- diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs index 113f9e0..ebcf219 100644 --- a/nihav-commonfmt/src/demuxers/avi.rs +++ b/nihav-commonfmt/src/demuxers/avi.rs @@ -363,7 +363,7 @@ impl<'a> AVIDemuxer<'a> { rest_size -= csz; } if !seek_idx.skip_index { - if !self.odml { + if !self.odml || self.odml_idx.is_empty() { self.src.read_skip(self.movi_size)?; while rest_size > 0 { let ret = self.parse_chunk(strmgr, RIFFTag::Chunk(mktag!(b"idx1")), rest_size,0);