[vlc-commits] equalizer: apply preamp twice on 2nd pass

Rafaël Carré git at videolan.org
Fri Jul 26 01:12:12 CEST 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Jul 25 18:15:38 2013 +0200| [4416c1f9156c43e2e2ecc8f8d6dbb098a7effc7f] | committer: Rafaël Carré

equalizer: apply preamp twice on 2nd pass

Fixes #8760

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4416c1f9156c43e2e2ecc8f8d6dbb098a7effc7f
---

 modules/audio_filter/equalizer.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c
index 4a362c4..47311f3 100644
--- a/modules/audio_filter/equalizer.c
+++ b/modules/audio_filter/equalizer.c
@@ -450,7 +450,7 @@ static void EqzFilter( filter_t *p_filter, float *out, float *in,
                 p_sys->x2[ch][0] = x2;
 
                 /* We add source PCM + filtered PCM */
-                out[ch] = p_sys->f_gamp *( EQZ_IN_FACTOR * x2 + o );
+                out[ch] = p_sys->f_gamp * p_sys->f_gamp *( EQZ_IN_FACTOR * x2 + o );
             }
             else
             {



More information about the vlc-commits mailing list