changeset 10292:01e6afd0aba6 libavcodec

Remove unneeded table lookup.
author jbr
date Sun, 27 Sep 2009 06:16:49 +0000
parents 40736a5ed681
children 261af05be0b5
files ac3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ac3.c	Sun Sep 27 06:13:01 2009 +0000
+++ b/ac3.c	Sun Sep 27 06:16:49 2009 +0000
@@ -228,7 +228,7 @@
     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];