diff --git a/libavcodec/wmv2.c b/libavcodec/wmv2.c
index f4caa5aa2579c938be98cda5477a973a25d517cb..30812198c6b0cd95e0e9259c308b721948cf0c6d 100644
--- a/libavcodec/wmv2.c
+++ b/libavcodec/wmv2.c
@@ -726,6 +726,7 @@ static int wmv2_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
             s->mv[0][0][0] = 0;
             s->mv[0][0][1] = 0;
             s->mb_skiped = 1;
+            w->hshift=0;
             return 0;
         }