diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-23 10:27:59 -0800 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-25 10:18:43 -0800 |
commit | 48cd3d233b360162b0b6a83e0d14a6be659c1700 (patch) | |
tree | d5ba130b6c0be095f7b10d841705f15cc9e7d77f /libavcodec/libopusdec.c | |
parent | 11388b5a8f187d5b7c8a28437e95762485f51ed8 (diff) | |
download | ffmpeg-48cd3d233b360162b0b6a83e0d14a6be659c1700.tar.gz |
lavc/libopusdec: replace pow(10,x) by ff_exp10(x)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/libopusdec.c')
-rw-r--r-- | libavcodec/libopusdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <opus_multistream.h> #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 |