]> git.nihav.org Git - nihav.git/commitdiff
bink demuxer: skip unknown field in KB2i
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 17 Mar 2019 17:58:10 +0000 (18:58 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sun, 17 Mar 2019 17:58:10 +0000 (18:58 +0100)
nihav-rad/src/demuxers/bink.rs

index 29d756fc76c328ac98b8eddc1fd1ac263133a587..ef0e14893234070038609fcb8b0ac4893dee7efc 100644 (file)
@@ -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);