From: Kostya Shishkov Date: Sat, 29 Jul 2017 13:18:12 +0000 (+0200) Subject: fix an error in AVI demuxer X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=cf00c65ab5b229ec4541457adffd5e63e4a66ab2;p=nihav.git fix an error in AVI demuxer --- 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") {