From 019d78266f214e6b2c2ca6fb9d6e7b249e4b5196 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 10 Oct 2024 18:45:14 +0200 Subject: [PATCH] avi: fall back to the old index when ODML provides none --- nihav-commonfmt/src/demuxers/avi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5