Mercurial > libavcodec.hg
comparison ac3.c @ 10488:40e411a184b2 libavcodec
Revert r20050, which caused decoding errors with at least one valid AC-3 file.
author | jbr |
---|---|
date | Tue, 03 Nov 2009 02:59:18 +0000 |
parents | 01e6afd0aba6 |
children | 8e07155cbe04 |
comparison
equal
deleted
inserted
replaced
10487:3e404d2520a7 | 10488:40e411a184b2 |
---|---|
226 | 226 |
227 bin = start; | 227 bin = start; |
228 band = bin_to_band_tab[start]; | 228 band = bin_to_band_tab[start]; |
229 do { | 229 do { |
230 int m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor; | 230 int m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor; |
231 int band_end = FFMIN(bin + ff_ac3_critical_band_size_tab[band], end); | 231 int band_end = FFMIN(band_start_tab[band] + ff_ac3_critical_band_size_tab[band], end); |
232 for (; bin < band_end; bin++) { | 232 for (; bin < band_end; bin++) { |
233 int address = av_clip((psd[bin] - m) >> 5, 0, 63); | 233 int address = av_clip((psd[bin] - m) >> 5, 0, 63); |
234 bap[bin] = bap_tab[address]; | 234 bap[bin] = bap_tab[address]; |
235 } | 235 } |
236 } while (end > band_start_tab[band++]); | 236 } while (end > band_start_tab[band++]); |