mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_mix: check if array is available
This commit is contained in:
parent
798ab1d03e
commit
70f866ad1b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue