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

vitor subversion
Sun Aug 31 04:39:55 CEST 2008


Author: vitor
Date: Sun Aug 31 04:39:55 2008
New Revision: 15093

Log:
Misc cosmetics in compute_lpc_coefs(): braces removal and empty lines

Modified:
   trunk/libavcodec/lpc.c

Modified: trunk/libavcodec/lpc.c
==============================================================================
--- trunk/libavcodec/lpc.c	(original)
+++ trunk/libavcodec/lpc.c	Sun Aug 31 04:39:55 2008
@@ -37,9 +37,10 @@ static void compute_lpc_coefs(const doub
 
     for(i=0; i<max_order; i++) {
         double r = -autoc[i+1];
-        for(j=0; j<i; j++) {
+
+        for(j=0; j<i; j++)
             r -= lpc_tmp[j] * autoc[i-j];
-        }
+
         r /= err;
         ref[i] = fabs(r);
 
@@ -51,13 +52,12 @@ static void compute_lpc_coefs(const doub
             lpc_tmp[j] += r * lpc_tmp[i-1-j];
             lpc_tmp[i-1-j] += r * tmp;
         }
-        if(i & 1) {
+
+        if(i & 1)
             lpc_tmp[j] += lpc_tmp[j] * r;
-        }
 
-        for(j=0; j<=i; j++) {
+        for(j=0; j<=i; j++)
             lpc[i][j] = -lpc_tmp[j];
-        }
     }
 }
 




More information about the ffmpeg-cvslog mailing list