From: Kostya Shishkov Date: Fri, 7 Oct 2022 16:44:47 +0000 (+0200) Subject: avi: ignore index entries not belonging to any stream X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=735b56ab4e0fd4466b6d031009f9c63f7493b512;p=nihav.git avi: ignore index entries not belonging to any stream --- 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;