mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 19:58:59 +00:00
avfilter/avf_showfreqs: fix check for failed allocation
This commit is contained in:
parent
1c165e19f9
commit
a46ee096d1
@ -195,7 +195,7 @@ static int config_output(AVFilterLink *outlink)
|
||||
if (!s->fft_data)
|
||||
return AVERROR(ENOMEM);
|
||||
s->avg_data = av_calloc(s->nb_channels, sizeof(*s->avg_data));
|
||||
if (!s->fft_data)
|
||||
if (!s->avg_data)
|
||||
return AVERROR(ENOMEM);
|
||||
for (i = 0; i < s->nb_channels; i++) {
|
||||
s->fft_data[i] = av_calloc(s->win_size, sizeof(**s->fft_data));
|
||||
|
Loading…
Reference in New Issue
Block a user