diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-08-31 02:39:55 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-08-31 02:39:55 +0000 |
commit | f6a1ca1dad1cf14e712b469c20b635b5c9c9f5c2 (patch) | |
tree | 45207ef401ef86af9cf6b0b5e5689058d3996733 /libavcodec/lpc.c | |
parent | 1ffbafa02b3cbc00e24a92cba8cd3a66ba02ec50 (diff) | |
download | ffmpeg-f6a1ca1dad1cf14e712b469c20b635b5c9c9f5c2.tar.gz |
Misc cosmetics in compute_lpc_coefs(): braces removal and empty lines
Originally committed as revision 15093 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r-- | libavcodec/lpc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 5c5d417706..253267c5aa 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]; - } } } |