avfilter/af_superequalizer: check allocations return value

release/5.1
Paul B Mahol 3 years ago
parent 6474300dc4
commit a63879049d
  1. 2
      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;

Loading…
Cancel
Save