Mercurial > libavcodec.hg
changeset 7751:816293be2e54 libavcodec
Remove useless var in compute_lpc_coefs()
author | vitor |
---|---|
date | Sun, 31 Aug 2008 02:37:04 +0000 |
parents | f9bd775992d4 |
children | e3fb2606d5b5 |
files | lpc.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lpc.c Sun Aug 31 02:35:58 2008 +0000 +++ b/lpc.c Sun Aug 31 02:37:04 2008 +0000 @@ -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 @@ 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;