1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00

avfilter/af_superequalizer: check allocations return value

This commit is contained in:
Paul B Mahol 2022-02-16 16:45:33 +01:00
parent 6474300dc4
commit a63879049d

View File

@ -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;