]> git.nihav.org Git - nihav.git/commitdiff
avi: fall back to the old index when ODML provides none
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 10 Oct 2024 16:45:14 +0000 (18:45 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 14 Oct 2024 16:18:43 +0000 (18:18 +0200)
nihav-commonfmt/src/demuxers/avi.rs

index 113f9e050fa3198537340a9ce616ebb114c20739..ebcf21935d50468995082f71584c0cbed55bfc09 100644 (file)
@@ -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);