[FFmpeg-soc] [soc]: r5520 - aac-sbr/aacsbr.c
alexc
subversion at mplayerhq.hu
Wed Dec 9 18:45:22 CET 2009
Author: alexc
Date: Wed Dec 9 18:45:22 2009
New Revision: 5520
Log:
Fix gain_max_temp.
The multiplication by limgain takes place inside of the min().
Modified:
aac-sbr/aacsbr.c
Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c Wed Dec 9 02:17:44 2009 (r5519)
+++ aac-sbr/aacsbr.c Wed Dec 9 18:45:22 2009 (r5520)
@@ -1464,8 +1464,8 @@ static void sbr_gain_calc(AACContext * a
sum[0] += sbr->e_origmapped[l][i];
sum[1] += sbr->e_curr[l][i];
}
- gain_max_temp[l][k] = limgain[sbr->bs_limiter_gains] *
- FFMIN(100000, sqrtf((EPS0 + sum[0]) / (EPS0 + sum[1])));
+ gain_max_temp[l][k] = FFMIN(100000,
+ limgain[sbr->bs_limiter_gains] * sqrtf((EPS0 + sum[0]) / (EPS0 + sum[1])));
}
}
More information about the FFmpeg-soc
mailing list