From: Kostya Shishkov Date: Wed, 16 Oct 2024 16:33:59 +0000 (+0200) Subject: avi: ignore pads streams X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=176fab2d5b16d0311daa11c5c692b40f668cbe48;p=nihav.git avi: ignore pads streams --- diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs index ebcf219..0db514d 100644 --- a/nihav-commonfmt/src/demuxers/avi.rs +++ b/nihav-commonfmt/src/demuxers/avi.rs @@ -565,6 +565,11 @@ fn parse_strh(dmx: &mut AVIDemuxer, strmgr: &mut StreamManager, size: usize) -> dmx.src.read_skip(size - 0x38)?; + // padding streams should be ignored + if tag == mktag!(b"pads") { + return Ok(size); + } + if !dmx.sstate.valid_state() || dmx.sstate.strm_no >= dmx.num_streams { return Err(InvalidData); }