Commit 71a04b8a authored by alexc's avatar alexc

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16978 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0b61a7d3
......@@ -741,6 +741,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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment