aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-12 02:26:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-12 02:26:50 +0200
commit927d866a9961c17597744436c8508703c2dc8277 (patch)
treef92991ec26c30915da64bdc3324a034a9b6eeccd
parent5a75924dfd432c0ada79a9f489889dc92d53b481 (diff)
downloadffmpeg-927d866a9961c17597744436c8508703c2dc8277.tar.gz
tscc2: fix out of array access
Fixes CID732260 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/tscc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tscc2.c b/libavcodec/tscc2.c
index 483e97f920..8692819942 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;