1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_tmidequalizer: check that frame is valid

This commit is contained in:
Paul B Mahol 2022-02-24 21:44:52 +01:00
parent 17ab836a5f
commit b9493e0cc0

View File

@ -178,6 +178,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
} else {
s->l_frames++;
}
if (!s->frames[idx])
return AVERROR_EOF;
in = av_frame_clone(s->frames[idx]);
if (!in)
return AVERROR(ENOMEM);