changeset 10489:8e07155cbe04 libavcodec

Simplify AC-3 critical band end calculation (correctly this time).
author jbr
date Tue, 03 Nov 2009 03:26:26 +0000
parents 40e411a184b2
children 27750570f2d4
files ac3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ac3.c	Tue Nov 03 02:59:18 2009 +0000
+++ b/ac3.c	Tue Nov 03 03:26:26 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(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];