aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2021-11-18 14:07:21 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2021-11-18 14:07:21 +0100
commit3fae33bd60f5575e63cfb1beec82a56a036e47fb (patch)
tree8754def7602ea6a81beb082b0c01c77f31bdd424
parentf1b0db38037cf1113834afbf5b478bcc4e84c588 (diff)
downloadnihav-3fae33bd60f5575e63cfb1beec82a56a036e47fb.tar.gz
flacenc: set output packet PTS
-rw-r--r--nihav-llaudio/src/codecs/flacenc.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-llaudio/src/codecs/flacenc.rs b/nihav-llaudio/src/codecs/flacenc.rs
index ccfe807..f9adc24 100644
--- a/nihav-llaudio/src/codecs/flacenc.rs
+++ b/nihav-llaudio/src/codecs/flacenc.rs
@@ -299,7 +299,7 @@ impl FLACEncoder {
let mut dbuf = bw.end();
calc_header_crc(&mut dbuf[..hdr_crc_pos]);
calc_frame_crc(&mut dbuf);
- let ts = NATimeInfo::new(None, None, Some(nsamples as u64), 1, self.srate);
+ let ts = NATimeInfo::new(Some(self.cur_pos as u64), None, Some(nsamples as u64), 1, self.srate);
for samp in self.samples.iter_mut() {
samp.drain(..nsamples);