mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
avfilter/af_afftfilt: Don't get max align multiple times
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -128,7 +128,8 @@ static int config_input(AVFilterLink *inlink)
|
||||
}
|
||||
|
||||
s->window_size = s->fft_size;
|
||||
buf_size = FFALIGN(s->window_size, av_cpu_max_align());
|
||||
size_t max_align = av_cpu_max_align();
|
||||
buf_size = FFALIGN(s->window_size, max_align);
|
||||
|
||||
s->fft_in = av_calloc(inlink->ch_layout.nb_channels, sizeof(*s->fft_in));
|
||||
if (!s->fft_in)
|
||||
|
||||
Reference in New Issue
Block a user