changeset 10279:fa3c28329d2f libavcodec

Remove unneeded variable
author jbr
date Sun, 27 Sep 2009 04:32:31 +0000
parents 1a4af35efbda
children 9e91066235c8
files ac3.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ac3.c	Sun Sep 27 04:07:49 2009 +0000
+++ b/ac3.c	Sun Sep 27 04:32:31 2009 +0000
@@ -98,7 +98,7 @@
 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 @@
         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++;