Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-13 17:02:21 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-08-13 17:02:21 +0400
commit20035fa24103da9199de3515ca75ba1f6bb275aa (patch)
tree2193b4fd1a79619706a6eb7820104d10d5b9cfc2 /libavcodec
parent84d29df01328c4695512aeb0021a9a9c9f54abbe (diff)
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')
-rw-r--r--libavcodec/g723_1.c8
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;
}