diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-29 21:50:59 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-29 21:50:59 +0200 |
commit | 04b4353f07097895f232f5ef89fd1ec351d83e7e (patch) | |
tree | d775cfcc72ab08b306580c72508605af87b7baa3 | |
parent | 631eee6e90bafb5baf8dfff5d85bf774d940b1d8 (diff) | |
download | ffmpeg-streaming-04b4353f07097895f232f5ef89fd1ec351d83e7e.zip ffmpeg-streaming-04b4353f07097895f232f5ef89fd1ec351d83e7e.tar.gz |
g723.1: very minor simplify of gen_acb_excitation()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/g723_1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c index 0aeea87..b167998 100644 --- a/libavcodec/g723_1.c +++ b/libavcodec/g723_1.c @@ -543,8 +543,8 @@ static void gen_acb_excitation(int16_t *vector, int16_t *prev_excitation, /* Calculate adaptive vector */ cb_ptr += subfrm.ad_cb_gain * 20; for (i = 0; i < SUBFRAME_LEN; i++) { - sum = ff_dot_product(residual + i, cb_ptr, PITCH_ORDER)<<1; - vector[i] = av_clipl_int32((sum << 1) + (1 << 15)) >> 16; + sum = ff_dot_product(residual + i, cb_ptr, PITCH_ORDER); + vector[i] = av_clipl_int32((sum << 2) + (1 << 15)) >> 16; } } |