Commit 08b83bf8 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_mix: always output frame if array is filled

parent 9e0e8e10
...@@ -354,7 +354,8 @@ static int tmix_filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -354,7 +354,8 @@ static int tmix_filter_frame(AVFilterLink *inlink, AVFrame *in)
if (s->nb_frames < s->nb_inputs) { if (s->nb_frames < s->nb_inputs) {
s->frames[s->nb_frames] = in; s->frames[s->nb_frames] = in;
s->nb_frames++; s->nb_frames++;
return 0; if (s->nb_frames < s->nb_inputs)
return 0;
} else { } else {
av_frame_free(&s->frames[0]); av_frame_free(&s->frames[0]);
memmove(&s->frames[0], &s->frames[1], sizeof(*s->frames) * (s->nb_inputs - 1)); memmove(&s->frames[0], &s->frames[1], sizeof(*s->frames) * (s->nb_inputs - 1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment