summaryrefslogtreecommitdiff
path: root/libavcodec/sipr.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2010-01-13 04:35:19 +0000
committerVitor Sessak <vitor1001@gmail.com>2010-01-13 04:35:19 +0000
commitef5e7fb253de2a618ad970e9c838bbc3bb6fc03b (patch)
treeae6360cb15f954e02c8260979602b6e2cff38f2f /libavcodec/sipr.c
parent1c3c129b8fd0101a14d89db3a613c357ab8979bf (diff)
Remove needless use of log2f()
Originally committed as revision 21185 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/sipr.c')
-rw-r--r--libavcodec/sipr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c
index 45bd71be2c..82d0267572 100644
--- a/libavcodec/sipr.c
+++ b/libavcodec/sipr.c
@@ -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 @@ static void decode_frame(SiprContext *ctx, SiprParameters *params,
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,