[FFmpeg-devel] [PATCH 09/15] lavc/imc: replace pow(10, x) by exp10(x)
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Wed Dec 23 19:47:29 CET 2015
exp10, introduced recently, is superior for the purpose.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavcodec/imc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index 14f9fa3..2335ae1e 100644
--- a/libavcodec/imc.c
+++ b/libavcodec/imc.c
@@ -137,8 +137,8 @@ static av_cold void iac_generate_tabs(IMCContext *q, int sampling_rate)
if (i > 0) {
tb = bark - prev_bark;
- q->weights1[i - 1] = pow(10.0, -1.0 * tb);
- q->weights2[i - 1] = pow(10.0, -2.7 * tb);
+ q->weights1[i - 1] = exp10(-1.0 * tb);
+ q->weights2[i - 1] = exp10(-2.7 * tb);
}
prev_bark = bark;
--
2.6.4
More information about the ffmpeg-devel
mailing list