Commit 7fc62015 authored by vitor's avatar vitor

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15093 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a5008738
...@@ -37,9 +37,10 @@ static void compute_lpc_coefs(const double *autoc, int max_order, ...@@ -37,9 +37,10 @@ static void compute_lpc_coefs(const double *autoc, int max_order,
for(i=0; i<max_order; i++) { for(i=0; i<max_order; i++) {
double r = -autoc[i+1]; 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 -= lpc_tmp[j] * autoc[i-j];
}
r /= err; r /= err;
ref[i] = fabs(r); ref[i] = fabs(r);
...@@ -51,13 +52,12 @@ static void compute_lpc_coefs(const double *autoc, int max_order, ...@@ -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[j] += r * lpc_tmp[i-1-j];
lpc_tmp[i-1-j] += r * tmp; lpc_tmp[i-1-j] += r * tmp;
} }
if(i & 1) {
if(i & 1)
lpc_tmp[j] += lpc_tmp[j] * r; 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]; lpc[i][j] = -lpc_tmp[j];
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment