diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 1813af085b..cbb71d77ed 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -813,7 +813,7 @@ static int unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb) if (s->keyframe) return 0; - else { + memset(motion_x, 0, 6 * sizeof(int)); memset(motion_y, 0, 6 * sizeof(int)); @@ -960,7 +960,6 @@ static int unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb) } } } - } return 0; }