aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_mix.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-02-02 18:54:54 +0100
committerPaul B Mahol <onemda@gmail.com>2019-02-02 18:54:54 +0100
commit08b83bf8289383affd971f6f459f05282197e904 (patch)
treebca673c49437fc374b46ef31561f12ef761c730b /libavfilter/vf_mix.c
parent9e0e8e10c7b496fdc73d6f2da053313c0f105ae3 (diff)
downloadffmpeg-08b83bf8289383affd971f6f459f05282197e904.tar.gz
avfilter/vf_mix: always output frame if array is filled
Diffstat (limited to 'libavfilter/vf_mix.c')
-rw-r--r--libavfilter/vf_mix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c
index 79b3733145..873bef9dc3 100644
--- a/libavfilter/vf_mix.c
+++ b/libavfilter/vf_mix.c
@@ -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));