From cf00c65ab5b229ec4541457adffd5e63e4a66ab2 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 29 Jul 2017 15:18:12 +0200 Subject: [PATCH] fix an error in AVI demuxer --- src/demuxers/avi.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/demuxers/avi.rs b/src/demuxers/avi.rs index 4be5217..c00df25 100644 --- a/src/demuxers/avi.rs +++ b/src/demuxers/avi.rs @@ -88,6 +88,7 @@ impl<'a> Demux<'a> for AVIDemuxer<'a> { if mktag!(tag) == mktag!(b"JUNK") { self.movi_size -= size + 8; self.src.read_skip(size)?; + if self.movi_size == 0 { return Err(EOF); } continue; } if mktag!(tag) == mktag!(b"LIST") { -- 2.39.5