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

jbr subversion
Sun Sep 27 08:16:49 CEST 2009


Author: jbr
Date: Sun Sep 27 08:16:49 2009
New Revision: 20050

Log:
Remove unneeded table lookup.

Modified:
   trunk/libavcodec/ac3.c

Modified: trunk/libavcodec/ac3.c
==============================================================================
--- trunk/libavcodec/ac3.c	Sun Sep 27 08:13:01 2009	(r20049)
+++ trunk/libavcodec/ac3.c	Sun Sep 27 08:16:49 2009	(r20050)
@@ -228,7 +228,7 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *
     band = bin_to_band_tab[start];
     do {
         int m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor;
-        int band_end = FFMIN(band_start_tab[band] + ff_ac3_critical_band_size_tab[band], end);
+        int band_end = FFMIN(bin + ff_ac3_critical_band_size_tab[band], end);
         for (; bin < band_end; bin++) {
             int address = av_clip((psd[bin] - m) >> 5, 0, 63);
             bap[bin] = bap_tab[address];



More information about the ffmpeg-cvslog mailing list