diff options
author | Christophe GISQUET <christophe.gisquet@gmail.com> | 2012-03-03 15:09:36 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-03-07 10:29:52 -0800 |
commit | 7e1ce6a6acd83cf2d5b21df94d2134b1553635ef (patch) | |
tree | 641b0483bf41da2c03c2a6cf4cad2e777c12c2f7 /libavcodec/acelp_pitch_delay.c | |
parent | dabf8dd34afdbb6dc9dc7603d7a5228fc67de4c8 (diff) | |
download | ffmpeg-7e1ce6a6acd83cf2d5b21df94d2134b1553635ef.tar.gz |
dsputil: remove shift parameter from scalarproduct_int16
There is only one caller, which does not need the shifting. Other use cases
are situations where different roundings would be needed.
The x86 and neon versions are modified accordingly.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavcodec/acelp_pitch_delay.c')
-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 395247dd2a..214a272c32 100644 --- a/libavcodec/acelp_pitch_delay.c +++ b/libavcodec/acelp_pitch_delay.c @@ -106,7 +106,7 @@ int16_t ff_acelp_decode_gain_code( mr_energy += quant_energy[i] * ma_prediction_coeff[i]; mr_energy = gain_corr_factor * exp(M_LN10 / (20 << 23) * mr_energy) / - sqrt(dsp->scalarproduct_int16(fc_v, fc_v, subframe_size, 0)); + sqrt(dsp->scalarproduct_int16(fc_v, fc_v, subframe_size)); return mr_energy >> 12; } |