Commit 48cd3d23 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

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

Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 11388b5a
......@@ -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
......
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