[pulseaudio-discuss] [PATCH 2/4] module-equalizer-sink: Use correct limit in loop

Maarten Bosmans mkbosmans at gmail.com
Fri Sep 2 05:11:50 PDT 2011


---
 src/modules/module-equalizer-sink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/module-equalizer-sink.c b/src/modules/module-equalizer-sink.c
index a45df1a..19b679b 100644
--- a/src/modules/module-equalizer-sink.c
+++ b/src/modules/module-equalizer-sink.c
@@ -909,7 +909,7 @@ static void save_profile(struct userdata *u, size_t channel, char *name){
     profile[0] = u->Xs[a_i][channel];
     H = u->Hs[channel][a_i];
     H_n = profile + 1;
-    for(size_t i = 0 ; i <= FILTER_SIZE(u); ++i){
+    for(size_t i = 0 ; i < FILTER_SIZE(u); ++i){
         H_n[i] = H[i] * u->fft_size;
         //H_n[i] = H[i];
     }
-- 
1.7.4.1



More information about the pulseaudio-discuss mailing list