avfilter/af_afade: add missing fifo write for second stream

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2015-11-23 10:37:51 +01:00
parent 59494863ff
commit 04a7ce1a8c

View File

@ -493,6 +493,8 @@ static int acrossfade_filter_frame(AVFilterLink *inlink, AVFrame *in)
av_audio_fifo_write(s->fifo[1], (void **)in->extended_data, in->nb_samples);
} else if (av_audio_fifo_size(s->fifo[1]) >= s->nb_samples) {
av_audio_fifo_write(s->fifo[1], (void **)in->extended_data, in->nb_samples);
if (s->overlap) {
cf[0] = ff_get_audio_buffer(outlink, s->nb_samples);
cf[1] = ff_get_audio_buffer(outlink, s->nb_samples);