avfilter/vf_mix: always output frame if array is filled
authorPaul B Mahol <onemda@gmail.com>
Sat, 2 Feb 2019 17:54:54 +0000 (18:54 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sat, 2 Feb 2019 17:54:54 +0000 (18:54 +0100)
libavfilter/vf_mix.c

index 79b3733..873bef9 100644 (file)
@@ -354,7 +354,8 @@ static int tmix_filter_frame(AVFilterLink *inlink, AVFrame *in)
     if (s->nb_frames < s->nb_inputs) {
         s->frames[s->nb_frames] = in;
         s->nb_frames++;
-        return 0;
+        if (s->nb_frames < s->nb_inputs)
+            return 0;
     } else {
         av_frame_free(&s->frames[0]);
         memmove(&s->frames[0], &s->frames[1], sizeof(*s->frames) * (s->nb_inputs - 1));