[FFmpeg-cvslog] avfilter/avf_showspectrum: use proper function return value instead of hardcoded number
Paul B Mahol
git at videolan.org
Wed Aug 4 11:17:27 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Aug 4 10:09:39 2021 +0200| [16b4331bd106e5cb47f8d2dcd098c3dfc022bc34] | committer: Paul B Mahol
avfilter/avf_showspectrum: use proper function return value instead of hardcoded number
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=16b4331bd106e5cb47f8d2dcd098c3dfc022bc34
---
libavfilter/avf_showspectrum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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));
More information about the ffmpeg-cvslog
mailing list