[FFmpeg-soc] [soc]: r4467 - aacenc/aaccoder.c

alexc subversion at mplayerhq.hu
Tue Jun 16 20:15:13 CEST 2009


Author: alexc
Date: Tue Jun 16 20:15:13 2009
New Revision: 4467

Log:
Simplify log(x)/log(2)

Modified:
   aacenc/aaccoder.c

Modified: aacenc/aaccoder.c
==============================================================================
--- aacenc/aaccoder.c	Tue Jun 16 20:11:47 2009	(r4466)
+++ aacenc/aaccoder.c	Tue Jun 16 20:15:13 2009	(r4467)
@@ -993,7 +993,7 @@ static void search_for_quantizers_faac(A
                 if(curdiff == 0.0f)
                     step = 0;
                 else
-                    step = fabsf(log(curdiff) / log(2));
+                    step = fabsf(log2(curdiff));
                 if(dist > uplim[w*16+g])
                     step = -step;
                 if(FFABS(step) <= 1 || (step > 0 && scf >= max_scf) || (step < 0 && scf <= min_scf)){


More information about the FFmpeg-soc mailing list