diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-02-16 16:45:33 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-02-16 17:28:14 +0100 |
commit | a63879049da2ae0c43b7a25b12192a37346801ff (patch) | |
tree | c72bbca4bb2654b949ebbeafabf86ff9ab6189a4 | |
parent | 6474300dc4212486eff82470061118cef720b420 (diff) | |
download | ffmpeg-a63879049da2ae0c43b7a25b12192a37346801ff.tar.gz |
avfilter/af_superequalizer: check allocations return value
-rw-r--r-- | libavfilter/af_superequalizer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/af_superequalizer.c b/libavfilter/af_superequalizer.c index aa73e92039..2b032b0846 100644 --- a/libavfilter/af_superequalizer.c +++ b/libavfilter/af_superequalizer.c @@ -148,6 +148,8 @@ static int equ_init(SuperEqualizerContext *s, int wb) s->ires = av_calloc(s->tabsize, sizeof(float)); s->irest = av_calloc(s->tabsize, sizeof(float)); s->fsamples = av_calloc(s->tabsize, sizeof(float)); + if (!s->ires || !s->irest || !s->fsamples) + return AVERROR(ENOMEM); for (i = 0; i <= M; i++) { s->fact[i] = 1; |