summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-09-19 00:57:24 -0400
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-19 13:06:40 +0200
commit4328e1fc424b01488bab10d60d2ffc0102c054a1 (patch)
tree3c6d91fa6c093e5670c441db6bd7bf1ba63d4c73
parent4e2471ef1d98b9b34e80b0b0c6fa4b8fb2f2dc19 (diff)
avcodec/g723_1: fix a undefined left shift of negative number
This fixes a -Wshift-negative-value reported with clang 3.7+, e.g http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/g723_1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 4a73c3c38a..68a6d9179c 100644
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -2142,7 +2142,7 @@ static void get_fcb_param(FCBParam *optim, int16_t *impulse_resp,
temp_corr[param.pulse_pos[0]] = 1;
for (k = 1; k < pulse_cnt; k++) {
- max = -1 << 30;
+ max = INT_MIN;
for (l = i; l < SUBFRAME_LEN; l += GRID_SIZE) {
if (temp_corr[l])
continue;