mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/vf_amplify: check if array is availabe before using it
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
10ed9f2b12
commit
e3a697eda3
|
@ -227,8 +227,10 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||||
AmplifyContext *s = ctx->priv;
|
AmplifyContext *s = ctx->priv;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (s->frames) {
|
||||||
for (i = 0; i < s->nb_frames; i++)
|
for (i = 0; i < s->nb_frames; i++)
|
||||||
av_frame_free(&s->frames[i]);
|
av_frame_free(&s->frames[i]);
|
||||||
|
}
|
||||||
av_freep(&s->frames);
|
av_freep(&s->frames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue