diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-08-17 16:22:25 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2019-08-17 16:22:25 +0200 |
commit | 6350b1eea7d33fb87dae93c627ad8d3f6d644f9e (patch) | |
tree | 1d9846e9e5ee287b099037d7c0b3d441a3ddf7b9 | |
parent | c9087a4c607b9408aef7bec25fec8b9fa41788d5 (diff) | |
download | nihav-6350b1eea7d33fb87dae93c627ad8d3f6d644f9e.tar.gz |
avi: stop outputting frames when index is hit
-rw-r--r-- | nihav-commonfmt/src/demuxers/avi.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs index 13b05f8..cf66f36 100644 --- a/nihav-commonfmt/src/demuxers/avi.rs +++ b/nihav-commonfmt/src/demuxers/avi.rs @@ -87,6 +87,9 @@ impl<'a> DemuxCore<'a> for AVIDemuxer<'a> { if self.movi_size == 0 { return Err(EOF); } continue; } + if tag[0] == b'i' && tag[1] == b'x' { + return Err(EOF); + } if tag[0] < b'0' || tag[0] > b'9' || tag[1] < b'0' || tag[1] > b'9' { return Err(InvalidData); } |