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 7994f210f9 avfilter/afir: do not scale an impulse response by an 
infinite gain
7994f210f9 is described below

commit 7994f210f964efdd17d9791ab8476225c6c7c889
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Sep 17 22:33:12 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 19 02:50:58 2026 +0000

    avfilter/afir: do not scale an impulse response by an infinite gain
    
    Found-by: zhang xingxing
    
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavfilter/afir_template.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/afir_template.c b/libavfilter/afir_template.c
index 10dc677c20..f81fcf5f58 100644
--- a/libavfilter/afir_template.c
+++ b/libavfilter/afir_template.c
@@ -80,6 +80,9 @@ static void fn(ir_scale)(AVFilterContext *ctx, 
AudioFIRContext *s,
                          int cur_nb_taps, int ch,
                          ftype *time, ftype ch_gain)
 {
+    if (!isfinite(ch_gain))
+        ch_gain = 1;
+
     if (ch_gain != 1. || s->ir_gain != 1.) {
         ftype gain = ch_gain * s->ir_gain;
 

-- 
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