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

reynaldo subversion at mplayerhq.hu
Mon Aug 20 08:59:21 CEST 2007


Author: reynaldo
Date: Mon Aug 20 08:59:21 2007
New Revision: 1038

Log:
Small correction on scaled codebook vector computation

Modified:
   qcelp/qcelpdec.c

Modified: qcelp/qcelpdec.c
==============================================================================
--- qcelp/qcelpdec.c	(original)
+++ qcelp/qcelpdec.c	Mon Aug 20 08:59:21 2007
@@ -276,13 +276,13 @@ static int qcelp_compute_svector(qcelp_p
              for(i=0; i<160; i++)
              {
                 cdn_vector[i]=
-                gain[i/10]*qcelp_fullrate_ccodebook[(i+1-index[i/10]) & 127];
+                gain[i/10]*qcelp_fullrate_ccodebook[(i-index[i/10]) & 127];
              }
              break;
         case RATE_HALF:
              for(i=0; i<160; i++)
                 cdn_vector[i]=
-                gain[i/40]*qcelp_halfrate_ccodebook[(i+1-index[i/40]) & 127];
+                gain[i/40]*qcelp_halfrate_ccodebook[(i-index[i/40]) & 127];
              break;
         case RATE_QUARTER:
             for(i=0; i<160; i++)



More information about the FFmpeg-soc mailing list