From 176fab2d5b16d0311daa11c5c692b40f668cbe48 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 16 Oct 2024 18:33:59 +0200 Subject: [PATCH] avi: ignore pads streams --- nihav-commonfmt/src/demuxers/avi.rs | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- 2.39.5