From 16b4331bd106e5cb47f8d2dcd098c3dfc022bc34 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 4 Aug 2021 10:09:39 +0200 Subject: avfilter/avf_showspectrum: use proper function return value instead of hardcoded number --- libavfilter/avf_showspectrum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/avf_showspectrum.c') diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 8aa6c668fa..9f3ade36f4 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -1037,7 +1037,7 @@ static int config_output(AVFilterLink *outlink) } 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) { s->fft = av_calloc(inlink->channels, sizeof(*s->fft)); -- cgit v1.2.3