[FFmpeg-soc] [soc]: r3385 - aacenc/aacpsy.c
kostya
subversion at mplayerhq.hu
Sun Aug 17 10:36:58 CEST 2008
Author: kostya
Date: Sun Aug 17 10:36:58 2008
New Revision: 3385
Log:
Remember the mathematics and simplify expression
Modified:
aacenc/aacpsy.c
Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c (original)
+++ aacenc/aacpsy.c Sun Aug 17 10:36:58 2008
@@ -537,7 +537,7 @@ static void calc_pe(Psy3gppBand *band, i
static inline int determine_scalefactor(Psy3gppBand *band)
{
//spec gives constant for lg() but we scaled it for log2()
- return (int)(2.66667 * (log2(6.75*band->thr) - log2(band->ffac)));
+ return (int)(2.66667 * (log2(6.75*band->thr/band->ffac)));
}
/**
More information about the FFmpeg-soc
mailing list