diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-12 02:26:50 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-10-12 18:17:10 +0300 |
commit | c80b59f679a0ac861bc30f6b5469032884e42ab6 (patch) | |
tree | f9b37432876a23b868f1f92dc1235750956ba7c3 /libavcodec/tscc2.c | |
parent | 2f1b2ff934e672c7ad5d8f1efe887350edc4daec (diff) | |
download | ffmpeg-c80b59f679a0ac861bc30f6b5469032884e42ab6.tar.gz |
tscc2: Fix an out of array access
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/tscc2.c')
-rw-r--r-- | libavcodec/tscc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c index 1b2a3a4990..36287137ad 100644 --- a/libavcodec/tscc2.c +++ b/libavcodec/tscc2.c @@ -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; |