1
0
Fork 0

avfilter/avf_showspectrum: check for allocation error

This commit is contained in:
Paul B Mahol 2023-05-17 09:02:11 +02:00
parent c48eff209c
commit 01d9a84ef5
1 changed files with 2 additions and 0 deletions

View File

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