summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-05-18 09:19:20 -0600
committerJohn Stebbins <[email protected]>2016-05-18 09:19:20 -0600
commit8964f5b518a16b4b19494b6f138f113f7f27bfb7 (patch)
tree0bf58c22d1a705d77d3d5bda469aa663dfabd081
parentf07f5b7054ffd89613f250ae36c6fd4d75f15ca5 (diff)
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.
-rw-r--r--libhb/sync.c2
1 files changed, 2 insertions, 0 deletions
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)
{