From 48cd3d233b360162b0b6a83e0d14a6be659c1700 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Wed, 23 Dec 2015 10:27:59 -0800 Subject: [PATCH] lavc/libopusdec: replace pow(10,x) by ff_exp10(x) Signed-off-by: Ganesh Ajjanagadde --- libavcodec/libopusdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/libopusdec.c b/libavcodec/libopusdec.c index 4cbd14a38a..1e97604181 100644 --- a/libavcodec/libopusdec.c +++ b/libavcodec/libopusdec.c @@ -23,6 +23,7 @@ #include #include "libavutil/avassert.h" +#include "libavutil/internal.h" #include "libavutil/intreadwrite.h" #include "avcodec.h" #include "internal.h" @@ -100,7 +101,7 @@ static av_cold int libopus_decode_init(AVCodecContext *avc) opus_strerror(ret)); #else { - double gain_lin = pow(10, gain_db / (20.0 * 256)); + double gain_lin = ff_exp10(gain_db / (20.0 * 256)); if (avc->sample_fmt == AV_SAMPLE_FMT_FLT) opus->gain.d = gain_lin; else