aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-10-07 18:44:47 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-10-07 14:46:44 +0200
commit735b56ab4e0fd4466b6d031009f9c63f7493b512 (patch)
tree01ee15dd5e75e44fc850d9cea237759afe784207
parente959ac43b8375199a0f117294fc31935c07de8b3 (diff)
downloadnihav-735b56ab4e0fd4466b6d031009f9c63f7493b512.tar.gz
avi: ignore index entries not belonging to any stream
-rw-r--r--nihav-commonfmt/src/demuxers/avi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs
index 2b89580..2329ae9 100644
--- a/nihav-commonfmt/src/demuxers/avi.rs
+++ b/nihav-commonfmt/src/demuxers/avi.rs
@@ -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;