changeset 7753:5e65094bbc23 libavcodec

Misc cosmetics in compute_lpc_coefs(): braces removal and empty lines
author vitor
date Sun, 31 Aug 2008 02:39:55 +0000
parents e3fb2606d5b5
children b7c59017beb8
files lpc.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lpc.c	Sun Aug 31 02:38:38 2008 +0000
+++ b/lpc.c	Sun Aug 31 02:39:55 2008 +0000
@@ -37,9 +37,10 @@
 
     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 @@
             lpc_tmp[j] += r * lpc_tmp[i-1-j];
             lpc_tmp[i-1-j] += r * tmp;
         }
-        if(i & 1) {
-            lpc_tmp[j] += lpc_tmp[j] * r;
-        }
 
-        for(j=0; j<=i; j++) {
+        if(i & 1)
+            lpc_tmp[j] += lpc_tmp[j] * r;
+
+        for(j=0; j<=i; j++)
             lpc[i][j] = -lpc_tmp[j];
-        }
     }
 }