You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/avf_showspectrum: check for allocation error
This commit is contained in:
@@ -1292,6 +1292,8 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
av_realloc_f(s->combine_buffer, s->w * 4,
|
av_realloc_f(s->combine_buffer, s->w * 4,
|
||||||
sizeof(*s->combine_buffer));
|
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",
|
av_log(ctx, AV_LOG_VERBOSE, "s:%dx%d FFT window size:%d\n",
|
||||||
s->w, s->h, s->win_size);
|
s->w, s->h, s->win_size);
|
||||||
|
Reference in New Issue
Block a user