From: Kostya Shishkov Date: Sun, 17 Nov 2019 07:59:10 +0000 (+0100) Subject: bink demuxer: save timebase in context X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=afaed986483bab74cc41c17b03399a29fe390901;p=nihav.git bink demuxer: save timebase in context --- diff --git a/nihav-rad/src/demuxers/bink.rs b/nihav-rad/src/demuxers/bink.rs index d0ae143..8438a36 100644 --- a/nihav-rad/src/demuxers/bink.rs +++ b/nihav-rad/src/demuxers/bink.rs @@ -66,6 +66,8 @@ impl<'a> DemuxCore<'a> for BinkDemuxer<'a> { let tb_num = src.read_u32le()?; validate!((width > 0) && (height > 0) && (width <= 7680) && (height <= 4800)); validate!((self.frames > 0) && (tb_num > 0) && (tb_den > 0) && (max_size < fsize)); + self.tb_num = tb_num; + self.tb_den = tb_den; let mut flags: [u8; 4] = [0; 4]; src.read_buf(&mut flags)?; let mut edata: Vec = vec![0; 8];