From 70fc42e8e6404f647d029060ee7d9016fd9f9bb8 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 28 Jun 2017 12:46:27 +0200 Subject: [PATCH] avi: skip LISTs inside movi data --- src/demuxers/avi.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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); } -- 2.39.5