ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Fri Mar 13 04:46:44 2015 +0100| [7b0daec233902ef01cdb06bd085f2f0a3e93d5c4] | committer: Michael Niedermayer
avcodec/svq1dec: Fix undefined shifts Found-by: Clang -fsanitize=shift Reported-by: Thierry Foucu <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7b0daec233902ef01cdb06bd085f2f0a3e93d5c4 --- libavcodec/svq1dec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index a95c7c8..f65915c 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -162,7 +162,8 @@ static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels, const uint32_t *codebook; int entries[6]; int i, j, m, n; - int mean, stages; + int stages; + unsigned mean; unsigned x, y, width, height, level; uint32_t n1, n2, n3, n4; @@ -228,7 +229,8 @@ static int svq1_decode_block_non_intra(GetBitContext *bitbuf, uint8_t *pixels, const uint32_t *codebook; int entries[6]; int i, j, m, n; - int mean, stages; + int stages; + unsigned mean; int x, y, width, height, level; uint32_t n1, n2, n3, n4; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
