mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
lavc/libopusdec: replace pow(10,x) by ff_exp10(x)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
11388b5a8f
commit
48cd3d233b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user