1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

avfilter/avf_showspectrum: use proper function return value instead of hardcoded number

This commit is contained in:
Paul B Mahol
2021-08-04 10:09:39 +02:00
parent b3117f376d
commit 16b4331bd1

View File

@@ -1037,7 +1037,7 @@ static int config_output(AVFilterLink *outlink)
} }
s->win_size = fft_size; s->win_size = fft_size;
s->buf_size = FFALIGN(s->win_size << (!!s->stop), 512); s->buf_size = FFALIGN(s->win_size << (!!s->stop), av_cpu_max_align());
if (!s->fft) { if (!s->fft) {
s->fft = av_calloc(inlink->channels, sizeof(*s->fft)); s->fft = av_calloc(inlink->channels, sizeof(*s->fft));