libavfilter/af_hdcd: fixed negative signed value shift

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/213/merge
dsmudhar 9 years ago committed by Michael Niedermayer
parent 89806e0b9a
commit 5836a5037e
  1. 2
      libavfilter/af_hdcd.c

@ -893,7 +893,7 @@ static int integrate(hdcd_state_t *state, int *flag, const int32_t *samples, int
state->code_counterC++;
} else {
if (bits)
state->readahead = readaheadtab[bits & ~(-1 << 8)];
state->readahead = readaheadtab[bits & ~((unsigned) -1 << 8)];
else
state->readahead = 31; /* ffwd over digisilence */
}

Loading…
Cancel
Save