diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-02-24 21:44:52 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-02-24 21:46:13 +0100 |
commit | b9493e0cc0dc8fb5f7a08e1d78dd4f63a11b2c13 (patch) | |
tree | 5b088d06dd981cc333787fc0246dfd5b91922c8c | |
parent | 17ab836a5f3fcfb81c98786d86d12e95f875e7f3 (diff) | |
download | ffmpeg-b9493e0cc0dc8fb5f7a08e1d78dd4f63a11b2c13.tar.gz |
avfilter/vf_tmidequalizer: check that frame is valid
-rw-r--r-- | libavfilter/vf_tmidequalizer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_tmidequalizer.c b/libavfilter/vf_tmidequalizer.c index f92c5a90a9..b5d497b637 100644 --- a/libavfilter/vf_tmidequalizer.c +++ b/libavfilter/vf_tmidequalizer.c @@ -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); |