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: use proper function return value instead of hardcoded number
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user