aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-09-27 04:32:31 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-09-27 04:32:31 +0000
commitbe5830ea7a258cb39fce07d4aab7543fa8024591 (patch)
treeb0f872801fb6afe04d692b9dd5e8223327ef1530
parentb05e4195d44f6325a6450f002dd52b3d700e031e (diff)
downloadffmpeg-be5830ea7a258cb39fce07d4aab7543fa8024591.tar.gz
Remove unneeded variable
Originally committed as revision 20037 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/ac3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c
index 85ec2b719d..963ecb299b 100644
--- a/libavcodec/ac3.c
+++ b/libavcodec/ac3.c
@@ -98,7 +98,7 @@ static inline int calc_lowcomp(int a, int b0, int b1, int bin)
void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
int16_t *band_psd)
{
- int bin, i, j, k, end1, v;
+ int bin, j, k, end1, v;
/* exponent mapping to PSD */
for(bin=start;bin<end;bin++) {
@@ -112,11 +112,10 @@ void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
v=psd[j];
j++;
end1 = FFMIN(band_start_tab[k+1], end);
- for(i=j;i<end1;i++) {
+ for (; j < end1; j++) {
/* logadd */
int adr = FFMIN(FFABS(v - psd[j]) >> 1, 255);
v = FFMAX(v, psd[j]) + ff_ac3_log_add_tab[adr];
- j++;
}
band_psd[k]=v;
k++;