This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 380e1cdb0c65b5643b8fba97606e671f2c0b9427
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Tue Feb 24 00:39:06 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Tue Mar 10 13:52:19 2026 +0100

    avfilter/af_afftfilt: Don't get max align multiple times
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavfilter/af_afftfilt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/af_afftfilt.c b/libavfilter/af_afftfilt.c
index 08cdcae2f7..7b68b19b72 100644
--- a/libavfilter/af_afftfilt.c
+++ b/libavfilter/af_afftfilt.c
@@ -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)

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to