aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-llaudio/src/demuxers/tta.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2020-10-04 11:53:21 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2020-10-04 11:53:21 +0200
commita480a0de101483d802a11e72d758dae00fa4860a (patch)
treeb433ba04fc397f6e7297aeb56103105254dcb3f7 /nihav-llaudio/src/demuxers/tta.rs
parentb4bf2c3f1a94b2b4ebbfc704e17fbaf366f8fa8b (diff)
downloadnihav-a480a0de101483d802a11e72d758dae00fa4860a.tar.gz
introduce stream and container duration
Diffstat (limited to 'nihav-llaudio/src/demuxers/tta.rs')
-rw-r--r--nihav-llaudio/src/demuxers/tta.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/nihav-llaudio/src/demuxers/tta.rs b/nihav-llaudio/src/demuxers/tta.rs
index 97ee808..973ff84 100644
--- a/nihav-llaudio/src/demuxers/tta.rs
+++ b/nihav-llaudio/src/demuxers/tta.rs
@@ -62,7 +62,7 @@ impl<'a> DemuxCore<'a> for TTADemuxer<'a> {
let ahdr = NAAudioInfo::new(srate, channels as u8, SND_S16P_FORMAT, 1);
let ainfo = NACodecInfo::new("tta", NACodecTypeInfo::Audio(ahdr), Some(hdr));
- strmgr.add_stream(NAStream::new(StreamType::Audio, 0, ainfo, self.framelen, srate)).unwrap();
+ strmgr.add_stream(NAStream::new(StreamType::Audio, 0, ainfo, self.framelen, srate, u64::from(self.nframes))).unwrap();
self.cur_frame = 0;
@@ -96,6 +96,7 @@ impl<'a> DemuxCore<'a> for TTADemuxer<'a> {
Ok(())
}
+ fn get_duration(&self) -> u64 { 0 }
}
impl<'a> NAOptionHandler for TTADemuxer<'a> {