Commit e6578a18 authored by jbr's avatar jbr

Remove unneeded table lookup.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20050 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0d8f3128
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment