You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
VP3: Prevent stack corruption from an unset custom coding method.
Originally committed as revision 16978 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user