From: Kostya Shishkov Date: Sat, 23 May 2020 15:11:50 +0000 (+0200) Subject: avi: end demuxing when index is encountered X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=30d39a7a5dd2591903a703a1a252b83efb865859;p=nihav.git avi: end demuxing when index is encountered --- diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs index 739cd01..d0e9cf3 100644 --- a/nihav-commonfmt/src/demuxers/avi.rs +++ b/nihav-commonfmt/src/demuxers/avi.rs @@ -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' {