[SCM] libav/experimental: Simplify AC-3 critical band end calculation (correctly this time).
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:53:58 UTC 2013
The following commit has been merged in the experimental branch:
commit 31f8c109836066fe34b03a15fa1fb19fea3d2cff
Author: Justin Ruggles <justin.ruggles at gmail.com>
Date: Tue Nov 3 03:26:26 2009 +0000
Simplify AC-3 critical band end calculation (correctly this time).
Originally committed as revision 20438 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c
index 72312c7..20b3397 100644
--- a/libavcodec/ac3.c
+++ b/libavcodec/ac3.c
@@ -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(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];
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list