[FFmpeg-soc] [soc]: r5536 - aac-sbr/aacsbr.c
alexc
subversion at mplayerhq.hu
Mon Dec 14 07:22:02 CET 2009
Author: alexc
Date: Mon Dec 14 07:22:01 2009
New Revision: 5536
Log:
Fix the computation of the limiter table.
Use a floating point divide when calculating nOctaves.
Modified:
aac-sbr/aacsbr.c
Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c Sun Dec 13 12:24:32 2009 (r5535)
+++ aac-sbr/aacsbr.c Mon Dec 14 07:22:01 2009 (r5536)
@@ -483,7 +483,7 @@ static int sbr_make_f_derived(AACContext
sbr->n_lim = sbr->n[0] + sbr->num_patches - 1;
while (k <= sbr->n_lim) {
// if ( nOctaves * limBands >= 0.49) ...
- if (log2(sbr->f_tablelim[k] / sbr->f_tablelim[k-1]) * lim_bands_per_octave[sbr->bs_limiter_bands - 1] >= 0.49) {
+ if (log2(sbr->f_tablelim[k] / (float)sbr->f_tablelim[k-1]) * lim_bands_per_octave[sbr->bs_limiter_bands - 1] >= 0.49) {
k++;
continue;
}
More information about the FFmpeg-soc
mailing list