[FFmpeg-soc] [soc]: r5521 - aac-sbr/aacsbr.c
alexc
subversion at mplayerhq.hu
Wed Dec 9 18:45:25 CET 2009
Author: alexc
Date: Wed Dec 9 18:45:25 2009
New Revision: 5521
Log:
Fix the delta condition on gain_boost_temp.
Modified:
aac-sbr/aacsbr.c
Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c Wed Dec 9 18:45:22 2009 (r5520)
+++ aac-sbr/aacsbr.c Wed Dec 9 18:45:25 2009 (r5521)
@@ -1489,7 +1489,7 @@ static void sbr_gain_calc(AACContext * a
sum[0] += sbr->e_origmapped[l][i];
sum[1] += sbr->e_curr[l][i] * sbr->gain_lim[l][i] * sbr->gain_lim[l][i]
+ sbr->s_m[l][i] * sbr->s_m[l][i]
- + (delta || !sbr->s_m[l][i]) * sbr->q_m_lim[l][i] * sbr->q_m_lim[l][i];
+ + (delta && !sbr->s_m[l][i]) * sbr->q_m_lim[l][i] * sbr->q_m_lim[l][i];
}
gain_boost_temp[l][k] = FFMIN(1.584893192, sqrtf((EPS0 + sum[0]) / (EPS0 + sum[1])));
}
More information about the FFmpeg-soc
mailing list