Commit 5836a503 authored by dsmudhar's avatar dsmudhar Committed by Michael Niedermayer

libavfilter/af_hdcd: fixed negative signed value shift

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 89806e0b
......@@ -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 */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment