[FFmpeg-cvslog] r16978 - trunk/libavcodec/vp3.c
alexc
subversion
Tue Feb 3 23:59:47 CET 2009
Author: alexc
Date: Tue Feb 3 23:59:47 2009
New Revision: 16978
Log:
VP3: Prevent stack corruption from an unset custom coding method.
Modified:
trunk/libavcodec/vp3.c
Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c Tue Feb 3 23:12:06 2009 (r16977)
+++ trunk/libavcodec/vp3.c Tue Feb 3 23:59:47 2009 (r16978)
@@ -742,6 +742,8 @@ static int unpack_modes(Vp3DecodeContext
/* 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;
}
More information about the ffmpeg-cvslog
mailing list