diff options
author | Mans Rullgard <mans@mansr.com> | 2012-10-18 17:59:13 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-10-20 12:28:45 +0100 |
commit | f0c07be6491c850f948e2029f27f06437d128f3a (patch) | |
tree | ba12184ed220cb5591293c368f81989c27e115ca /libavcodec/acelp_pitch_delay.c | |
parent | 79042ab37619a234d5fe0f680885a392e966ea6b (diff) | |
download | ffmpeg-f0c07be6491c850f948e2029f27f06437d128f3a.tar.gz |
celp_math: rename ff_log2 to ff_log2_q15
This name is more descriptive as the function returns a fixed-point
value with 15 fraction bits.
Signed-off-by: Mans Rullgard <mans@mansr.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 c091301474..a9668fac70 100644 --- a/libavcodec/acelp_pitch_delay.c +++ b/libavcodec/acelp_pitch_delay.c @@ -86,7 +86,7 @@ void ff_acelp_update_past_gain( if(erasure) quant_energy[0] = FFMAX(avg_gain >> log2_ma_pred_order, -10240) - 4096; // -10 and -4 in (5.10) else - quant_energy[0] = (6165 * ((ff_log2(gain_corr_factor) >> 2) - (13 << 13))) >> 13; + quant_energy[0] = (6165 * ((ff_log2_q15(gain_corr_factor) >> 2) - (13 << 13))) >> 13; } int16_t ff_acelp_decode_gain_code( |