mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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>
This commit is contained in:
parent
1b6695354d
commit
044be48fae
@ -118,7 +118,7 @@ int16_t ff_acelp_decode_gain_code(
|
|||||||
(mr_energy >> 15) - 25
|
(mr_energy >> 15) - 25
|
||||||
);
|
);
|
||||||
#else
|
#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));
|
sqrt(adsp->scalarproduct_int16(fc_v, fc_v, subframe_size));
|
||||||
return mr_energy >> 12;
|
return mr_energy >> 12;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user