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:
parent
6474300dc4
commit
a63879049d
@ -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…
Reference in New Issue
Block a user