avfilter/af_afftfilt: Don't get max align multiple times

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-03-10 13:52:19 +01:00
parent a4efdcaa53
commit 380e1cdb0c
+2 -1
View File
@@ -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)