From ffdf2c7f37da3f3bf8fad63a9e693ed89454d4e6 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 17 Mar 2019 18:58:10 +0100 Subject: [PATCH] bink demuxer: skip unknown field in KB2i --- nihav-rad/src/demuxers/bink.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nihav-rad/src/demuxers/bink.rs b/nihav-rad/src/demuxers/bink.rs index 29d756f..ef0e148 100644 --- a/nihav-rad/src/demuxers/bink.rs +++ b/nihav-rad/src/demuxers/bink.rs @@ -82,6 +82,9 @@ impl<'a> DemuxCore<'a> for BinkDemuxer<'a> { self.video_id = res.unwrap(); let num_audio = src.read_u32le()? as usize; + if magic_tag >= mktag!(b"KB2i") { + src.read_skip(4)?; + } validate!(num_audio < 256); src.read_skip(num_audio * 4)?; // audio max output frame size? self.ainfo = Vec::with_capacity(num_audio); -- 2.39.5