From: Kostya Shishkov Date: Wed, 28 Jun 2017 10:46:27 +0000 (+0200) Subject: avi: skip LISTs inside movi data X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=70fc42e8e6404f647d029060ee7d9016fd9f9bb8;p=nihav.git avi: skip LISTs inside movi data --- diff --git a/src/demuxers/avi.rs b/src/demuxers/avi.rs index 3810bc8..4be5217 100644 --- a/src/demuxers/avi.rs +++ b/src/demuxers/avi.rs @@ -90,6 +90,12 @@ impl<'a> Demux<'a> for AVIDemuxer<'a> { self.src.read_skip(size)?; continue; } + if mktag!(tag) == mktag!(b"LIST") { + self.movi_size -= 12; + self.src.read_skip(4)?; + if self.movi_size == 0 { return Err(EOF); } + continue; + } if tag[0] < b'0' || tag[0] > b'9' || tag[1] < b'0' || tag[1] > b'9' { return Err(InvalidData); }