diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-13 15:02:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-13 15:02:21 +0200 |
commit | 20035fa24103da9199de3515ca75ba1f6bb275aa (patch) | |
tree | 2193b4fd1a79619706a6eb7820104d10d5b9cfc2 /libavcodec/g723_1.c | |
parent | 84d29df01328c4695512aeb0021a9a9c9f54abbe (diff) | |
download | ffmpeg-20035fa24103da9199de3515ca75ba1f6bb275aa.tar.gz |
g723_1dec: remove dead code that leaked in from libav
It appears someone thinks this special case can be reached
Well, it cannot, thus not only do we not need to optimize it
we dont need it at all
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/g723_1.c')
-rw-r--r-- | libavcodec/g723_1.c | 8 |
1 files changed, 2 insertions, 6 deletions
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; } |