Commit 8e84913d authored by Diego Biurrun's avatar Diego Biurrun
Browse files

cosmetics: Fix incorrect indentation.

Originally committed as revision 14878 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 4b0044b7
...@@ -31,38 +31,38 @@ ...@@ -31,38 +31,38 @@
static void compute_lpc_coefs(const double *autoc, int max_order, static void compute_lpc_coefs(const double *autoc, int max_order,
double lpc[][MAX_LPC_ORDER], double *ref) double lpc[][MAX_LPC_ORDER], double *ref)
{ {
int i, j, i2; int i, j, i2;
double r, err, tmp; double r, err, tmp;
double lpc_tmp[MAX_LPC_ORDER]; double lpc_tmp[MAX_LPC_ORDER];
for(i=0; i<max_order; i++) lpc_tmp[i] = 0; for(i=0; i<max_order; i++) lpc_tmp[i] = 0;
err = autoc[0]; err = autoc[0];
for(i=0; i<max_order; i++) { for(i=0; i<max_order; i++) {
r = -autoc[i+1]; 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);
err *= 1.0 - (r * r); err *= 1.0 - (r * r);
i2 = (i >> 1); i2 = (i >> 1);
lpc_tmp[i] = r; lpc_tmp[i] = r;
for(j=0; j<i2; j++) { for(j=0; j<i2; j++) {
tmp = lpc_tmp[j]; tmp = lpc_tmp[j];
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