avfilter/af_afade: add missing fifo write for second stream
authorPaul B Mahol <onemda@gmail.com>
Mon, 23 Nov 2015 09:37:51 +0000 (10:37 +0100)
committerPaul B Mahol <onemda@gmail.com>
Mon, 23 Nov 2015 09:37:51 +0000 (10:37 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_afade.c

index 7bc7eb3..ca9f2c4 100644 (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);