[FFmpeg-devel] [PATCH] lavc/acelp_pitch_delay: replace exp2f(M_LOG2_10 *x) by exp10f(x)
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Fri Dec 25 19:52:11 CET 2015
On Wed, Dec 23, 2015 at 12:26 PM, Ganesh Ajjanagadde
<gajjanagadde at gmail.com> wrote:
> Suggested-by: Ronald S. Bultje <rsbultje at gmail.com>
> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> ---
> libavcodec/acelp_pitch_delay.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/acelp_pitch_delay.c b/libavcodec/acelp_pitch_delay.c
> index 3ecec01..95272d9 100644
> --- a/libavcodec/acelp_pitch_delay.c
> +++ b/libavcodec/acelp_pitch_delay.c
> @@ -132,7 +132,7 @@ float ff_amr_set_fixed_gain(float fixed_gain_factor, float fixed_mean_energy,
> // ^g_c = ^gamma_gc * 100.05 (predicted dB + mean dB - dB of fixed vector)
> // Note 10^(0.05 * -10log(average x2)) = 1/sqrt((average x2)).
> float val = fixed_gain_factor *
> - exp2f(M_LOG2_10 * 0.05 *
> + exp10f(0.05 *
> (avpriv_scalarproduct_float_c(pred_table, prediction_error, 4) +
> energy_mean)) /
> sqrtf(fixed_mean_energy);
> --
> 2.6.4
>
pushed
More information about the ffmpeg-devel
mailing list