From 735b56ab4e0fd4466b6d031009f9c63f7493b512 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 7 Oct 2022 18:44:47 +0200 Subject: [PATCH] avi: ignore index entries not belonging to any stream --- nihav-commonfmt/src/demuxers/avi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5