aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-commonfmt
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-10-14 18:23:20 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-10-14 18:23:20 +0200
commitbf30ce1bcf061cf59d0dbd149997892ad4fdf7ed (patch)
tree3c35f268d0b7f431a4918f09419fc5696f85b95c /nihav-commonfmt
parent51382a9ad683e7b4d5907f63cd8e103f531f577c (diff)
downloadnihav-bf30ce1bcf061cf59d0dbd149997892ad4fdf7ed.tar.gz
avi: accept not fully used ODML index chunks
Diffstat (limited to 'nihav-commonfmt')
-rw-r--r--nihav-commonfmt/src/demuxers/avi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs
index c4b4817..bc39234 100644
--- a/nihav-commonfmt/src/demuxers/avi.rs
+++ b/nihav-commonfmt/src/demuxers/avi.rs
@@ -819,7 +819,7 @@ fn parse_odml_ix(src: &mut ByteReader, strmgr: &mut StreamManager, seek_idx: &mu
let idx_type = src.read_byte()?;
validate!(sub_type == 0 && idx_type == 1);
let entries = src.read_u32le()? as usize;
- validate!(size == 24 + entries * 4 * entry_size);
+ validate!(size >= 24 + entries * 4 * entry_size);
src.read_tag()?; //chunk id
let base_offset = src.read_u64le()?;
src.read_u32le()?; //reserved