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:
20e2a7a
)
VP3: Prevent stack corruption from an unset custom coding method.
author
Alex Converse
<alex.converse@gmail.com>
Tue, 3 Feb 2009 22:59:47 +0000
(22:59 +0000)
committer
Alex Converse
<alex.converse@gmail.com>
Tue, 3 Feb 2009 22:59:47 +0000
(22:59 +0000)
Originally committed as revision 16978 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/vp3.c
patch
|
blob
|
history
diff --git
a/libavcodec/vp3.c
b/libavcodec/vp3.c
index
8dc2da4
..
c44e6e4
100644
(file)
--- a/
libavcodec/vp3.c
+++ b/
libavcodec/vp3.c
@@
-742,6
+742,8
@@
static int unpack_modes(Vp3DecodeContext *s, GetBitContext *gb)
/* is it a custom coding scheme? */
if (scheme == 0) {
for (i = 0; i < 8; i++)
+ custom_mode_alphabet[i] = MODE_INTER_NO_MV;
+ for (i = 0; i < 8; i++)
custom_mode_alphabet[get_bits(gb, 3)] = i;
}