From: John Stebbins Date: Mon, 8 Aug 2016 20:54:28 +0000 (-0700) Subject: sync: fix audio resampling X-Git-Tag: 1.0.0~277 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1bc87c331a2abbdf9379b088e0234280219fca3;p=handbrake sync: fix audio resampling The output buffer size was not set correctly after resampling --- diff --git a/libhb/sync.c b/libhb/sync.c index 49f410358..5bc38699f 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -2863,6 +2863,7 @@ static hb_buffer_t * FilterAudioFrame( sync_stream_t * stream, hb_buffer_close(&buf); return NULL; } + buf->size = stream->audio.src.pkt.output_frames_gen * sample_size; buf->s.duration = 90000. * stream->audio.src.pkt.output_frames_gen / audio->config.out.samplerate; buf->s.start = stream->next_pts;