[SCM] libav/experimental: Misc cosmetics in compute_lpc_coefs(): braces removal and empty lines

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:29:01 UTC 2013


The following commit has been merged in the experimental branch:
commit f6a1ca1dad1cf14e712b469c20b635b5c9c9f5c2
Author: Vitor Sessak <vitor1001 at gmail.com>
Date:   Sun Aug 31 02:39:55 2008 +0000

    Misc cosmetics in compute_lpc_coefs(): braces removal and empty lines
    
    Originally committed as revision 15093 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 5c5d417..253267c 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -37,9 +37,10 @@ static void compute_lpc_coefs(const double *autoc, int max_order,
 
     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 double *autoc, int max_order,
             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];
-        }
     }
 }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list