aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-indeo
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2022-11-04 18:25:56 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2022-11-04 18:25:56 +0100
commit8e14efb001fac3fecb0cb56df8705d23fa2231a8 (patch)
treebdd21683de1db9d4c39d0d68cf8e180e7ea902cb /nihav-indeo
parent3867d436b51515207e0035e2c6cb127de3935c57 (diff)
downloadnihav-8e14efb001fac3fecb0cb56df8705d23fa2231a8.tar.gz
switch demuxers to use NAStream::make_ts()
Diffstat (limited to 'nihav-indeo')
-rw-r--r--nihav-indeo/src/demuxers/ivf.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/nihav-indeo/src/demuxers/ivf.rs b/nihav-indeo/src/demuxers/ivf.rs
index 6ea4623..cccb5ab 100644
--- a/nihav-indeo/src/demuxers/ivf.rs
+++ b/nihav-indeo/src/demuxers/ivf.rs
@@ -218,8 +218,7 @@ impl<'a> DemuxCore<'a> for IVFDemuxer<'a> {
}
if let Some(stream) = strmgr.get_stream(stream_id) {
- let (tb_num, tb_den) = stream.get_timebase();
- let ts = NATimeInfo::new(Some(tstamp as u64), None, None, tb_num, tb_den);
+ let ts = stream.make_ts(Some(tstamp as u64), None, None);
return Ok(NAPacket::new_from_refbuf(stream, ts, false, NABufferRef::new(buf)));
} else {
return Err(DemuxerError::InvalidData);