Commit a0ea801d authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavc/opus: replace pow(10,x) by ff_exp10(x)

Reviewed-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 5495c7f2
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment