From 8964f5b518a16b4b19494b6f138f113f7f27bfb7 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 18 May 2016 09:19:20 -0600 Subject: [PATCH] sync: set start and stop when resampling audio It's not strictly necessary because it gets done elsewhere as well. But putting it here makes the code more understandable. --- libhb/sync.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhb/sync.c b/libhb/sync.c index 288b6434d..456fc2094 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -2314,6 +2314,8 @@ static hb_buffer_t * FilterAudioFrame( sync_stream_t * stream, } buf->s.duration = 90000. * stream->audio.src.pkt.output_frames_gen / audio->config.out.samplerate; + buf->s.start = stream->next_pts; + buf->s.stop = stream->next_pts + buf->s.duration; } if (audio->config.out.gain > 0.0) { -- 2.40.0