diff options
author | John Stebbins <[email protected]> | 2016-08-08 13:54:28 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-08-08 13:55:08 -0700 |
commit | b1bc87c331a2abbdf9379b088e0234280219fca3 (patch) | |
tree | 5af995d0200ac0476b489e0daddcdd56d27fc403 /libhb/sync.c | |
parent | cc9c3520326449666a9c8a57323bbf6fb4544ffa (diff) |
sync: fix audio resampling
The output buffer size was not set correctly after resampling
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |