1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-02 17:29:58 +02:00

libavfilter/af_hdcd: fixed negative signed value shift

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
dsmudhar 2016-05-22 06:18:58 +05:30 committed by Michael Niedermayer
parent 89806e0b9a
commit 5836a5037e

View File

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