summaryrefslogtreecommitdiff
path: root/libavcodec/opus.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-23 10:31:54 -0800
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-25 10:48:18 -0800
commita0ea801dc39a651385979be70822fa18d42a68b1 (patch)
tree5a604ae602971c5f67afda154f7b33fa4037cde1 /libavcodec/opus.c
parent5495c7f2a382a959a6af02617a77e9cb095ba5b2 (diff)
lavc/opus: replace pow(10,x) by ff_exp10(x)
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/opus.c')
-rw-r--r--libavcodec/opus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/opus.c b/libavcodec/opus.c
index 6b3d3c310e..f2b8ecc411 100644
--- a/libavcodec/opus.c
+++ b/libavcodec/opus.c
@@ -27,6 +27,7 @@
#include <stdint.h>
#include "libavutil/error.h"
+#include "libavutil/internal.h"
#include "opus.h"
#include "vorbis.h"
@@ -333,7 +334,7 @@ av_cold int ff_opus_parse_extradata(AVCodecContext *avctx,
s->gain_i = AV_RL16(extradata + 16);
if (s->gain_i)
- s->gain = pow(10, s->gain_i / (20.0 * 256));
+ s->gain = ff_exp10(s->gain_i / (20.0 * 256));
map_type = extradata[18];
if (!map_type) {