[FFmpeg-cvslog] r20438 - trunk/libavcodec/ac3.c
jbr
subversion
Tue Nov 3 04:26:26 CET 2009
Author: jbr
Date: Tue Nov 3 04:26:26 2009
New Revision: 20438
Log:
Simplify AC-3 critical band end calculation (correctly this time).
Modified:
trunk/libavcodec/ac3.c
Modified: trunk/libavcodec/ac3.c
==============================================================================
--- trunk/libavcodec/ac3.c Tue Nov 3 03:59:18 2009 (r20437)
+++ trunk/libavcodec/ac3.c Tue Nov 3 04:26:26 2009 (r20438)
@@ -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(band_start_tab[band+1], 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