diff --git a/vp8/encoder/bitstream.c b/vp8/encoder/bitstream.c
index d34aa91acec799e3ce691dbb296ab8cf861536f8..f44705299fef03349b21d822bf550f74907dd131 100644
--- a/vp8/encoder/bitstream.c
+++ b/vp8/encoder/bitstream.c
@@ -872,10 +872,10 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
             // top-left, top-right, bottom-left, bottom-right
             for (i=0; i<4; i++)
             {
-                const MB_MODE_INFO *const mi = & m->mbmi;
-                const MV_REFERENCE_FRAME rf = mi->ref_frame;
-                const MB_PREDICTION_MODE mode = mi->mode;
-                const int segment_id = mi->segment_id;
+                MB_MODE_INFO *mi;
+                MV_REFERENCE_FRAME rf;
+                MB_PREDICTION_MODE mode;
+                int segment_id;
 
                 int dy = row_delta[i];
                 int dx = col_delta[i];
@@ -892,6 +892,11 @@ static void pack_inter_mode_mvs(VP8_COMP *const cpi)
                     continue;
                 }
 
+                mi = & m->mbmi;
+                rf = mi->ref_frame;
+                mode = mi->mode;
+                segment_id = mi->segment_id;
+
                 // Distance of Mb to the various image edges.
                 // These specified to 8th pel as they are always compared to MV
                 // values that are in 1/8th pel units