diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 06:16:49 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-09-27 06:16:49 +0000 |
commit | 09e03847b945ab31469ea428349aa4d589544019 (patch) | |
tree | 022617a5c3bf6edd97e3219383c00800a771454f /libavcodec/ac3.c | |
parent | 444ce49a7aea920b0d9ed16cab16f3a86b6a6672 (diff) | |
download | ffmpeg-09e03847b945ab31469ea428349aa4d589544019.tar.gz |
Remove unneeded table lookup.
Originally committed as revision 20050 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3.c')
-rw-r--r-- | libavcodec/ac3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c index 72312c7ed2..f0f14e360c 100644 --- a/libavcodec/ac3.c +++ b/libavcodec/ac3.c @@ -228,7 +228,7 @@ void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end, 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]; |