1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_mix: always output frame if array is filled

This commit is contained in:
Paul B Mahol 2019-02-02 18:54:54 +01:00
parent 9e0e8e10c7
commit 08b83bf828

View 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));