changeset 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 3e404d2520a7
children 8e07155cbe04
files ac3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ac3.c	Mon Nov 02 14:12:25 2009 +0000
+++ b/ac3.c	Tue Nov 03 02:59:18 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(bin + ff_ac3_critical_band_size_tab[band], end);
+        int band_end = FFMIN(band_start_tab[band] + 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];