diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-08-31 02:37:04 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-08-31 02:37:04 +0000 |
commit | fc324cd523a01c8715a2a99e299a423c1aca40b7 (patch) | |
tree | 5328e54fbb2b334307cc62dc240e7f12e6daa1c6 /libavcodec/lpc.c | |
parent | e1747bfa4ed91f3673a77e6d302715ef5ca41959 (diff) | |
download | ffmpeg-fc324cd523a01c8715a2a99e299a423c1aca40b7.tar.gz |
Remove useless var in compute_lpc_coefs()
Originally committed as revision 15091 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lpc.c')
-rw-r--r-- | libavcodec/lpc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index 044a9ab678..5c5d417706 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -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; |