mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-11 01:47:55 +02:00
Remove useless var in compute_lpc_coefs()
Originally committed as revision 15091 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e1747bfa4e
commit
fc324cd523
@ -31,7 +31,7 @@
|
||||
static void compute_lpc_coefs(const double *autoc, int max_order,
|
||||
double lpc[][MAX_LPC_ORDER], double *ref)
|
||||
{
|
||||
int i, j, i2;
|
||||
int i, j;
|
||||
double err = autoc[0];
|
||||
double lpc_tmp[MAX_LPC_ORDER];
|
||||
|
||||
@ -45,9 +45,8 @@ static void compute_lpc_coefs(const double *autoc, int max_order,
|
||||
|
||||
err *= 1.0 - (r * r);
|
||||
|
||||
i2 = (i >> 1);
|
||||
lpc_tmp[i] = r;
|
||||
for(j=0; j<i2; j++) {
|
||||
for(j=0; j < i>>1; j++) {
|
||||
double tmp = lpc_tmp[j];
|
||||
lpc_tmp[j] += r * lpc_tmp[i-1-j];
|
||||
lpc_tmp[i-1-j] += r * tmp;
|
||||
|
Loading…
Reference in New Issue
Block a user