Commit 4631a75c authored by vitor's avatar vitor

Merge declaration and initialization of a few vars in compute_lpc_coefs()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15088 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5a96ab6b
......@@ -32,13 +32,11 @@ static void compute_lpc_coefs(const double *autoc, int max_order,
double lpc[][MAX_LPC_ORDER], double *ref)
{
int i, j, i2;
double r, err, tmp;
double err = autoc[0];
double lpc_tmp[MAX_LPC_ORDER];
err = autoc[0];
for(i=0; i<max_order; i++) {
r = -autoc[i+1];
double r = -autoc[i+1];
for(j=0; j<i; j++) {
r -= lpc_tmp[j] * autoc[i-j];
}
......@@ -50,7 +48,7 @@ static void compute_lpc_coefs(const double *autoc, int max_order,
i2 = (i >> 1);
lpc_tmp[i] = r;
for(j=0; j<i2; j++) {
tmp = lpc_tmp[j];
double tmp = lpc_tmp[j];
lpc_tmp[j] += r * lpc_tmp[i-1-j];
lpc_tmp[i-1-j] += r * tmp;
}
......
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