]> granicus.if.org Git - handbrake/commitdiff
sync: fix audio resampling
authorJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 8 Aug 2016 20:54:28 +0000 (13:54 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Mon, 8 Aug 2016 20:55:08 +0000 (13:55 -0700)
The output buffer size was not set correctly after resampling

libhb/sync.c

index 49f410358c7bb877561731a6b5e3e4bb13ef4153..5bc38699f37dfd912b7d6449abc1159bb5a1a3e1 100644 (file)
@@ -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;