changeset 10873:fb42dfc877cc libavcodec

Remove needless use of log2f()
author vitor
date Wed, 13 Jan 2010 04:35:19 +0000
parents a4fbfc917c2e
children bcfe2acbf190
files sipr.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sipr.c	Wed Jan 13 04:29:55 2010 +0000
+++ b/sipr.c	Wed Jan 13 04:35:19 2010 +0000
@@ -24,6 +24,7 @@
 #include <math.h>
 #include <stdint.h>
 
+#include "libavutil/mathematics.h"
 #include "avcodec.h"
 #define ALT_BITSTREAM_READER_LE
 #include "get_bits.h"
@@ -463,7 +464,7 @@
 
         gain_code = ff_amr_set_fixed_gain(gain_cb[params->gc_index[i]][1],
                                           avg_energy, ctx->energy_history,
-                                          34 - 15.0/(log2f(10.0) * 0.05),
+                                          34 - 15.0/(0.05*M_LN10/M_LN2),
                                           pred);
 
         ff_weighted_vector_sumf(excitation, excitation, fixed_vector,