avfilter/vf_mix: check if array is available

This commit is contained in:
Paul B Mahol 2020-04-13 16:44:01 +02:00
parent 798ab1d03e
commit 70f866ad1b
1 changed files with 1 additions and 1 deletions

View File

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