]> git.nihav.org Git - nihav.git/commitdiff
avi: end demuxing when index is encountered
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 23 May 2020 15:11:50 +0000 (17:11 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 23 May 2020 15:11:50 +0000 (17:11 +0200)
nihav-commonfmt/src/demuxers/avi.rs

index 739cd012c3c3d971c258f33238af35c0f3b81ca1..d0e9cf36fb4f8c37f151bdae26acfe20dbb99e2f 100644 (file)
@@ -97,7 +97,7 @@ impl<'a> DemuxCore<'a> for AVIDemuxer<'a> {
                 if self.movi_size == 0 { return Err(EOF); }
                 continue;
             }
-            if tag[0] == b'i' && tag[1] == b'x' {
+            if (tag[0] == b'i' && tag[1] == b'x') || (&tag == b"idx1") {
                 return Err(EOF);
             }
             if tag[0] < b'0' || tag[0] > b'9' || tag[1] < b'0' || tag[1] > b'9' {