[FFmpeg-soc] [soc]: r992 - qcelp/qcelpdec.c

reynaldo subversion at mplayerhq.hu
Sun Aug 19 00:46:56 CEST 2007


Author: reynaldo
Date: Sun Aug 19 00:46:56 2007
New Revision: 992

Log:
convolution fixed --

Modified:
   qcelp/qcelpdec.c

Modified: qcelp/qcelpdec.c
==============================================================================
--- qcelp/qcelpdec.c	(original)
+++ qcelp/qcelpdec.c	Sun Aug 19 00:46:56 2007
@@ -565,7 +565,7 @@ static void qcelp_convolve(float *vector
     {
         vector_a[i]=0.0;
         for(j=0;j<=i;j++)
-            vector_a[i]+=(i>=d1? 0:copy[i])*(j>=d2? 0:vector_b[j]);
+            vector_a[i]+=(((i-j)>=d1 || (i-j)<0)? 0:copy[i-j])*(j>=d2? 0:vector_b[j]);
     }
 
 }



More information about the FFmpeg-soc mailing list