diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2024-06-24 18:32:17 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2024-06-24 18:32:17 +0200 |
commit | 5ebc04f1a78b84cdd0d35ab30afc3d84bf7f0ad5 (patch) | |
tree | 496bbd17f597989e2266371ff195b3d9def7a4aa | |
parent | b8ea95bcd62ebd2a6b58a889c0a2e0e35fa212d3 (diff) | |
download | nihav-5ebc04f1a78b84cdd0d35ab30afc3d84bf7f0ad5.tar.gz |
avi: descend into 'rec' lists
-rw-r--r-- | nihav-commonfmt/src/demuxers/avi.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs index f14c31a..d29ff45 100644 --- a/nihav-commonfmt/src/demuxers/avi.rs +++ b/nihav-commonfmt/src/demuxers/avi.rs @@ -503,6 +503,7 @@ const CHUNKS: &[RIFFParser] = &[ RIFFParser { tag: RIFFTag::Chunk(mktag!(b"indx")), parse: parse_indx }, RIFFParser { tag: RIFFTag::Chunk(mktag!(b"JUNK")), parse: parse_junk }, RIFFParser { tag: RIFFTag::List(mktag!(b"LIST"), mktag!(b"odml")), parse: parse_odml }, + RIFFParser { tag: RIFFTag::List(mktag!(b"LIST"), mktag!(b"rec ")), parse: parse_rec }, ]; fn is_list_tag(tag: u32) -> bool { @@ -531,6 +532,10 @@ fn parse_odml(dmx: &mut AVIDemuxer, _strmgr: &mut StreamManager, _size: usize) - Ok(0) } +fn parse_rec(_dmx: &mut AVIDemuxer, _strmgr: &mut StreamManager, _size: usize) -> DemuxerResult<usize> { + Ok(0) +} + #[allow(unused_variables)] fn parse_strh(dmx: &mut AVIDemuxer, strmgr: &mut StreamManager, size: usize) -> DemuxerResult<usize> { if size < 0x38 { return Err(InvalidData); } |