aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-12-31 21:21:42 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2019-01-01 21:11:47 +0100
commit044be48faeadf33d3ec75cad9a9fac4fbd47fe7a (patch)
tree7c7dfb85b5b149989e4d398c8275f0572bcb88ee
parent1b6695354d9e2da1967e51a76c5a87e1c78c7812 (diff)
downloadffmpeg-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.c2
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