diff --git a/libavcodec/msmpeg4.c b/libavcodec/msmpeg4.c
index 817fdeaf3d923015d7e0e2ce3962e6ba1d8b4623..df39315854e43e770a7e98636f8544d66696f95c 100644
--- a/libavcodec/msmpeg4.c
+++ b/libavcodec/msmpeg4.c
@@ -550,6 +550,7 @@ void msmpeg4_encode_mb(MpegEncContext * s,
 	    put_bits(&s->pb, 1, 1);
             s->last_bits++;
 	    s->misc_bits++;
+            s->skip_count++;
 
 	    return;
 	}
@@ -652,6 +653,7 @@ void msmpeg4_encode_mb(MpegEncContext * s,
             msmpeg4_encode_block(s, block[i], i);
         }
         s->i_tex_bits += get_bits_diff(s);
+        s->i_count++;
     }
 }