From ad35c553b39fc70237605952bf2c6ff1fac5b7b7 Mon Sep 17 00:00:00 2001 From: Rafael Ruggiero Date: Tue, 15 Jul 2014 17:42:01 -0300 Subject: [PATCH] Update surround_encoder_1401.c --- plugins/LadspaEffect/swh/surround_encoder_1401.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/LadspaEffect/swh/surround_encoder_1401.c b/plugins/LadspaEffect/swh/surround_encoder_1401.c index d4b6ace01..100a03e5a 100644 --- a/plugins/LadspaEffect/swh/surround_encoder_1401.c +++ b/plugins/LadspaEffect/swh/surround_encoder_1401.c @@ -228,7 +228,7 @@ static void runSurroundEncoder(LADSPA_Handle instance, unsigned long sample_coun for (pos = 0; pos < sample_count; pos++) { delay[dptr] = s[pos]; hilb = 0.0f; - for (i = 0; i <= NZEROS/2; i++) { + for (i = 0; i < NZEROS/2; i++) { hilb += (xcoeffs[i] * delay[(dptr - i*2) & (D_SIZE - 1)]); } dptr = (dptr + 1) & (D_SIZE - 1); @@ -296,7 +296,7 @@ static void runAddingSurroundEncoder(LADSPA_Handle instance, unsigned long sampl for (pos = 0; pos < sample_count; pos++) { delay[dptr] = s[pos]; hilb = 0.0f; - for (i = 0; i <= NZEROS/2; i++) { + for (i = 0; i < NZEROS/2; i++) { hilb += (xcoeffs[i] * delay[(dptr - i*2) & (D_SIZE - 1)]); } dptr = (dptr + 1) & (D_SIZE - 1);