diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-12-31 21:21:42 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-01 21:11:47 +0100 |
commit | 044be48faeadf33d3ec75cad9a9fac4fbd47fe7a (patch) | |
tree | 7c7dfb85b5b149989e4d398c8275f0572bcb88ee | |
parent | 1b6695354d9e2da1967e51a76c5a87e1c78c7812 (diff) | |
download | ffmpeg-044be48faeadf33d3ec75cad9a9fac4fbd47fe7a.tar.gz |
avcodec/acelp_pitch_delay: Minor simplification by using ff_exp10()
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/acelp_pitch_delay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/acelp_pitch_delay.c b/libavcodec/acelp_pitch_delay.c index c345a99c81..a070d1b25d 100644 --- a/libavcodec/acelp_pitch_delay.c +++ b/libavcodec/acelp_pitch_delay.c @@ -118,7 +118,7 @@ int16_t ff_acelp_decode_gain_code( (mr_energy >> 15) - 25 ); #else - mr_energy = gain_corr_factor * exp(M_LN10 / (20 << 23) * mr_energy) / + mr_energy = gain_corr_factor * ff_exp10((double)mr_energy / (20 << 23)) / sqrt(adsp->scalarproduct_int16(fc_v, fc_v, subframe_size)); return mr_energy >> 12; #endif |