From 3fae33bd60f5575e63cfb1beec82a56a036e47fb Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Thu, 18 Nov 2021 14:07:21 +0100 Subject: [PATCH] flacenc: set output packet PTS --- nihav-llaudio/src/codecs/flacenc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5