Browse Source

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>
tags/n2.7
Michael Niedermayer 11 years ago
parent
commit
7b0daec233
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      libavcodec/svq1dec.c

+ 4
- 2
libavcodec/svq1dec.c View File

@@ -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;



Loading…
Cancel
Save