avfilter/avf_showspectrum: check for allocation error
This commit is contained in:
parent
c48eff209c
commit
01d9a84ef5
@ -1292,6 +1292,8 @@ static int config_output(AVFilterLink *outlink)
|
||||
av_realloc_f(s->combine_buffer, s->w * 4,
|
||||
sizeof(*s->combine_buffer));
|
||||
}
|
||||
if (!s->combine_buffer)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
av_log(ctx, AV_LOG_VERBOSE, "s:%dx%d FFT window size:%d\n",
|
||||
s->w, s->h, s->win_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user