Commit e3a697ed authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_amplify: check if array is availabe before using it

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 10ed9f2b
......@@ -227,8 +227,10 @@ static av_cold void uninit(AVFilterContext *ctx)
AmplifyContext *s = ctx->priv;
int i;
for (i = 0; i < s->nb_frames; i++)
av_frame_free(&s->frames[i]);
if (s->frames) {
for (i = 0; i < s->nb_frames; i++)
av_frame_free(&s->frames[i]);
}
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