[FFmpeg-cvslog] r15091 - trunk/libavcodec/lpc.c

vitor subversion
Sun Aug 31 04:37:05 CEST 2008


Author: vitor
Date: Sun Aug 31 04:37:04 2008
New Revision: 15091

Log:
Remove useless var in compute_lpc_coefs()

Modified:
   trunk/libavcodec/lpc.c

Modified: trunk/libavcodec/lpc.c
==============================================================================
--- trunk/libavcodec/lpc.c	(original)
+++ trunk/libavcodec/lpc.c	Sun Aug 31 04:37:04 2008
@@ -31,7 +31,7 @@
 static void compute_lpc_coefs(const double *autoc, int max_order,
                               double lpc[][MAX_LPC_ORDER], double *ref)
 {
-    int i, j, i2;
+    int i, j;
     double err = autoc[0];
     double lpc_tmp[MAX_LPC_ORDER];
 
@@ -45,9 +45,8 @@ static void compute_lpc_coefs(const doub
 
         err *= 1.0 - (r * r);
 
-        i2 = (i >> 1);
         lpc_tmp[i] = r;
-        for(j=0; j<i2; j++) {
+        for(j=0; j < i>>1; j++) {
             double tmp = lpc_tmp[j];
             lpc_tmp[j] += r * lpc_tmp[i-1-j];
             lpc_tmp[i-1-j] += r * tmp;




More information about the ffmpeg-cvslog mailing list