From 1e11629a8f35ab294b0b0e6b3165c51d257952a7 Mon Sep 17 00:00:00 2001 From: oparviai Date: Sat, 31 Oct 2009 14:53:23 +0000 Subject: [PATCH] Bugfix: FIR filter went too far in processing buffer - this is incorrect although it didn't cause any change to the outcome. --- source/SoundTouch/mmx_optimized.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/SoundTouch/mmx_optimized.cpp b/source/SoundTouch/mmx_optimized.cpp index 8a22fa3..c70d2e4 100644 --- a/source/SoundTouch/mmx_optimized.cpp +++ b/source/SoundTouch/mmx_optimized.cpp @@ -270,7 +270,7 @@ uint FIRFilterMMX::evaluateFilterStereo(short *dest, const short *src, uint numS if (length < 2) return 0; - for (i = 0; i < numSamples / 2; i ++) + for (i = 0; i < (numSamples - length) / 2; i ++) { __m64 accu1; __m64 accu2;