Skip to content
Snippets Groups Projects
Commit 2c823b3c authored by Alex Converse's avatar Alex Converse
Browse files

VP3: Prevent stack corruption from an unset custom coding method.

Originally committed as revision 16978 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 20e2a7ae
No related branches found
No related tags found
No related merge requests found
...@@ -741,6 +741,8 @@ static int unpack_modes(Vp3DecodeContext *s, GetBitContext *gb) ...@@ -741,6 +741,8 @@ static int unpack_modes(Vp3DecodeContext *s, GetBitContext *gb)
/* is it a custom coding scheme? */ /* is it a custom coding scheme? */
if (scheme == 0) { if (scheme == 0) {
for (i = 0; i < 8; i++)
custom_mode_alphabet[i] = MODE_INTER_NO_MV;
for (i = 0; i < 8; i++) for (i = 0; i < 8; i++)
custom_mode_alphabet[get_bits(gb, 3)] = i; custom_mode_alphabet[get_bits(gb, 3)] = i;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment