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>
This commit is contained in:
Ganesh Ajjanagadde 2015-09-19 00:57:24 -04:00 committed by Michael Niedermayer
parent 4e2471ef1d
commit 4328e1fc42

View File

@ -2142,7 +2142,7 @@ static void get_fcb_param(FCBParam *optim, int16_t *impulse_resp,
temp_corr[param.pulse_pos[0]] = 1; temp_corr[param.pulse_pos[0]] = 1;
for (k = 1; k < pulse_cnt; k++) { for (k = 1; k < pulse_cnt; k++) {
max = -1 << 30; max = INT_MIN;
for (l = i; l < SUBFRAME_LEN; l += GRID_SIZE) { for (l = i; l < SUBFRAME_LEN; l += GRID_SIZE) {
if (temp_corr[l]) if (temp_corr[l])
continue; continue;