diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 8dc2da4f03..c44e6e49b7 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -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; }