projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f1b2ff
)
tscc2: Fix an out of array access
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 12 Oct 2012 00:26:50 +0000
(
02:26
+0200)
committer
Martin Storsjö
<martin@martin.st>
Fri, 12 Oct 2012 15:17:10 +0000
(18:17 +0300)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/tscc2.c
patch
|
blob
|
history
diff --git
a/libavcodec/tscc2.c
b/libavcodec/tscc2.c
index
1b2a3a4
..
3628713
100644
(file)
--- 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;