avcodec/g723_1: fix a undefined left shift of negative number
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Sat, 19 Sep 2015 04:57:24 +0000 (00:57 -0400)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 19 Sep 2015 11:06:40 +0000 (13:06 +0200)
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>
libavcodec/g723_1.c

index 4a73c3c..68a6d91 100644 (file)
@@ -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;