diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c index a8ca75f99a..ae7379917e 100644 --- a/libavcodec/g723_1.c +++ b/libavcodec/g723_1.c @@ -259,12 +259,8 @@ static int scale_vector(int16_t *dst, const int16_t *vector, int length) bits = normalize_bits(max, 15); - if (bits == 15) - for (i = 0; i < length; i++) - dst[i] = vector[i] * 0x7fff >> 3; - else - for (i = 0; i < length; i++) - dst[i] = vector[i] << bits >> 3; + for (i = 0; i < length; i++) + dst[i] = vector[i] << bits >> 3; return bits - 3; }