Browse Source

tscc2: Fix an out of array access

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n1.1
Michael Niedermayer Martin Storsjö 12 years ago
parent
commit
c80b59f679
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/tscc2.c

+ 1
- 1
libavcodec/tscc2.c View File

@@ -173,7 +173,7 @@ static int tscc2_decode_mb(TSCC2Context *c, int *q, int vlc_set,
if (ac == 0x1000)
ac = get_bits(gb, 12);
bpos += ac & 0xF;
if (bpos >= 64)
if (bpos >= 16)
return AVERROR_INVALIDDATA;
val = sign_extend(ac >> 4, 8);
c->block[tscc2_zigzag[bpos++]] = val;


Loading…
Cancel
Save