Commit 70f866ad authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_mix: check if array is available

parent 798ab1d0
...@@ -289,7 +289,7 @@ static av_cold void uninit(AVFilterContext *ctx) ...@@ -289,7 +289,7 @@ static av_cold void uninit(AVFilterContext *ctx)
for (i = 0; i < ctx->nb_inputs; i++) for (i = 0; i < ctx->nb_inputs; i++)
av_freep(&ctx->input_pads[i].name); av_freep(&ctx->input_pads[i].name);
} else { } 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_frame_free(&s->frames[i]);
} }
av_freep(&s->frames); av_freep(&s->frames);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment