]> git.nihav.org Git - nihav.git/commitdiff
avi: ignore index entries not belonging to any stream
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 7 Oct 2022 16:44:47 +0000 (18:44 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 7 Oct 2022 12:46:44 +0000 (14:46 +0200)
nihav-commonfmt/src/demuxers/avi.rs

index 2b8958087906599e0cd5572efb6a9c574e7f0e0a..2329ae9be27c0ff893f453b697652060b8b4c8d8 100644 (file)
@@ -782,7 +782,7 @@ fn parse_idx1(src: &mut ByteReader, strmgr: &mut StreamManager, seek_idx: &mut S
         offset += add_offset;
 
         if tag[0] < b'0' || tag[0] > b'9' || tag[1] < b'0' || tag[1] > b'9' {
-            return Err(InvalidData);
+            continue;
         }
         let stream_no = ((tag[0] - b'0') * 10 + (tag[1] - b'0')) as usize;