diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-29 21:40:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-29 21:44:04 +0200 |
commit | cb58adaaa303d74e4c132454301cf347e4f0c364 (patch) | |
tree | 7d1f8b348392ef1d1879226e1a95a54d1f318528 /libavcodec/g723_1.c | |
parent | 431f8af8242c41ef922f9daf791b0be26dc0bba4 (diff) | |
download | ffmpeg-cb58adaaa303d74e4c132454301cf347e4f0c364.tar.gz |
g723.1: simplify scale_vector()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/g723_1.c')
-rw-r--r-- | libavcodec/g723_1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c index 9c019a99fd..e3c3b525ae 100644 --- a/libavcodec/g723_1.c +++ b/libavcodec/g723_1.c @@ -242,7 +242,7 @@ static int scale_vector(int16_t *vector, int length) scale = shift_table[bits]; for (i = 0; i < length; i++) - vector[i] = (int16_t)(av_clipl_int32(vector[i] * scale << 1) >> 4); + vector[i] = (vector[i] * scale) >> 3; return bits - 3; } |