aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-04-13 16:44:01 +0200
committerPaul B Mahol <onemda@gmail.com>2020-04-13 16:44:01 +0200
commit70f866ad1ba6737d9a1a79d2531412ca91687ba1 (patch)
tree534bdf20a83d5dd64446ac045a43eba1a3cbe798
parent798ab1d03e8df06f2c7dd9a01bb303f368df5de4 (diff)
downloadffmpeg-70f866ad1ba6737d9a1a79d2531412ca91687ba1.tar.gz
avfilter/vf_mix: check if array is available
-rw-r--r--libavfilter/vf_mix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c
index 9e1ae79e00..f418c6fba8 100644
--- a/libavfilter/vf_mix.c
+++ b/libavfilter/vf_mix.c
@@ -289,7 +289,7 @@ static av_cold void uninit(AVFilterContext *ctx)
for (i = 0; i < ctx->nb_inputs; i++)
av_freep(&ctx->input_pads[i].name);
} else {
- for (i = 0; i < s->nb_frames; i++)
+ for (i = 0; i < s->nb_frames && s->frames; i++)
av_frame_free(&s->frames[i]);
}
av_freep(&s->frames);