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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 3946c9ba55 avfilter/af_sofalizer: keep the IR buffers at least 32 
samples long
3946c9ba55 is described below

commit 3946c9ba55a61eddf463fd13703c67a1c63f334b
Author:     zhang xingxing <[email protected]>
AuthorDate: Tue Sep 22 00:30:21 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Oct 3 22:56:25 2026 +0200

    avfilter/af_sofalizer: keep the IR buffers at least 32 samples long
    
    Found-by: zhang xingxing <[email protected]>
    Fixes: out of array read
    Fixes: bJKNUpXl9w8q
---
 libavfilter/af_sofalizer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_sofalizer.c b/libavfilter/af_sofalizer.c
index ed05dc103a..01278c2d42 100644
--- a/libavfilter/af_sofalizer.c
+++ b/libavfilter/af_sofalizer.c
@@ -742,7 +742,7 @@ static int load_data(AVFilterContext *ctx, int azim, int 
elev, float radius, int
 
     av_log(ctx, AV_LOG_DEBUG, "IR length: %d.\n", s->sofa.hrtf->N);
     s->sofa.ir_samples = s->sofa.hrtf->N;
-    s->sofa.n_samples = 1 << (32 - ff_clz(s->sofa.ir_samples));
+    s->sofa.n_samples = FFMAX(32, 1 << (32 - ff_clz(s->sofa.ir_samples)));
 
     n_samples = s->sofa.n_samples;
     ir_samples = s->sofa.ir_samples;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to