[FFmpeg-cvslog] r20047 - trunk/libavcodec/ac3.c

jbr subversion
Sun Sep 27 08:01:32 CEST 2009


Author: jbr
Date: Sun Sep 27 08:01:32 2009
New Revision: 20047

Log:
Remove unneeded variable.

Modified:
   trunk/libavcodec/ac3.c

Modified: trunk/libavcodec/ac3.c
==============================================================================
--- trunk/libavcodec/ac3.c	Sun Sep 27 07:48:03 2009	(r20046)
+++ trunk/libavcodec/ac3.c	Sun Sep 27 08:01:32 2009	(r20047)
@@ -216,7 +216,7 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *
                                int snr_offset, int floor,
                                const uint8_t *bap_tab, uint8_t *bap)
 {
-    int i, j, k, end1, v, address;
+    int i, j, end1, v, address;
 
     /* special case, if snr offset is -960, set all bap's to zero */
     if (snr_offset == -960) {
@@ -229,10 +229,9 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *
     do {
         v = (FFMAX(mask[j] - snr_offset - floor, 0) & 0x1FE0) + floor;
         end1 = FFMIN(band_start_tab[j] + ff_ac3_critical_band_size_tab[j], end);
-        for (k = i; k < end1; k++) {
+        for (; i < end1; i++) {
             address = av_clip((psd[i] - v) >> 5, 0, 63);
             bap[i] = bap_tab[address];
-            i++;
         }
     } while (end > band_start_tab[j++]);
 }



More information about the ffmpeg-cvslog mailing list