diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-13 04:46:44 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-13 11:55:45 +0100 |
commit | 7b0daec233902ef01cdb06bd085f2f0a3e93d5c4 (patch) | |
tree | 1ed8aa8e99bb925da2e3403eebcfc99e633e731a | |
parent | 3cd823e46f708df476260ed898064b68739329b1 (diff) | |
download | ffmpeg-7b0daec233902ef01cdb06bd085f2f0a3e93d5c4.tar.gz |
avcodec/svq1dec: Fix undefined shifts
Found-by: Clang -fsanitize=shift
Reported-by: Thierry Foucu <tfoucu@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/svq1dec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index a95c7c866e..f65915c475 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; |