Browse Source

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>
tags/n3.0
Ganesh Ajjanagadde Michael Niedermayer 10 years ago
parent
commit
4328e1fc42
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/g723_1.c

+ 1
- 1
libavcodec/g723_1.c View 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;


Loading…
Cancel
Save