[FFmpeg-soc] [soc]: r3359 - aacenc/aacpsy.c

kostya subversion at mplayerhq.hu
Sat Aug 16 16:21:08 CEST 2008


Author: kostya
Date: Sat Aug 16 16:21:08 2008
New Revision: 3359

Log:
10l Forgot that scaling value two times will quadruple its energy

Modified:
   aacenc/aacpsy.c

Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c	(original)
+++ aacenc/aacpsy.c	Sat Aug 16 16:21:08 2008
@@ -594,8 +594,8 @@ static void psy_3gpp_process(AACPsyConte
                     en_m += m*m;
                     en_s += s*s;
                 }
-                en_m /= 262144.0*2.0;
-                en_s /= 262144.0*2.0;
+                en_m /= 262144.0*4.0;
+                en_s /= 262144.0*4.0;
                 minthr = FFMIN(pch->band[0][w+g].thr, pch->band[1][w+g].thr);
                 if(minthr * minthr * pch->band[0][w+g].energy * pch->band[1][w+g].energy  >= (pch->band[0][w+g].thr * pch->band[1][w+g].thr * en_m * en_s)){
                     cpe->ms_mask[w+g] = 1;



More information about the FFmpeg-soc mailing list