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)));
}
/**
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc