[FFmpeg-cvslog] libavfilter/af_hdcd: fixed negative signed value shift
dsmudhar
git at videolan.org
Mon May 23 05:42:46 CEST 2016
ffmpeg | branch: master | dsmudhar <ds.mudhar at gmail.com> | Sun May 22 06:36:58 2016 +0530| [5836a5037ecbbd9b10ac85cdec5ff8cccb1177d0] | committer: Michael Niedermayer
libavfilter/af_hdcd: fixed negative signed value shift
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5836a5037ecbbd9b10ac85cdec5ff8cccb1177d0
---
libavfilter/af_hdcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c
index 041b89f..fbf0836 100644
--- a/libavfilter/af_hdcd.c
+++ b/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 */
}
More information about the ffmpeg-cvslog
mailing list