# HG changeset patch # User alexc # Date 1233701987 0 # Node ID f973fff635997e0704ac9731cf85b55775dcf439 # Parent 5d7ebbb7e91bc487942e2a564d2d546d3db66985 VP3: Prevent stack corruption from an unset custom coding method. diff -r 5d7ebbb7e91b -r f973fff63599 vp3.c --- a/vp3.c Tue Feb 03 20:49:02 2009 +0000 +++ b/vp3.c Tue Feb 03 22:59:47 2009 +0000 @@ -742,6 +742,8 @@ /* 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; }