diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-04-13 17:44:01 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-04-13 17:44:01 +0300 |
commit | 70f866ad1ba6737d9a1a79d2531412ca91687ba1 (patch) | |
tree | 534bdf20a83d5dd64446ac045a43eba1a3cbe798 /libavfilter | |
parent | 798ab1d03e8df06f2c7dd9a01bb303f368df5de4 (diff) |
avfilter/vf_mix: check if array is available
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_mix.c | 2 |
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); |