diff options
author | Paul B Mahol <onemda@gmail.com> | 2021-08-04 10:09:39 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2021-08-04 10:09:39 +0200 |
commit | 16b4331bd106e5cb47f8d2dcd098c3dfc022bc34 (patch) | |
tree | 3b99040cb017df17d4320fc144deffd4e5e11441 /libavfilter/avf_showspectrum.c | |
parent | b3117f376d1c50b3c39befe27cbba12d5c0f80da (diff) |
avfilter/avf_showspectrum: use proper function return value instead of hardcoded number
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r-- | libavfilter/avf_showspectrum.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |