]> granicus.if.org Git - libvpx/commitdiff
fix an assumption about uv_stride
authorJohn Koleszar <jkoleszar@google.com>
Tue, 12 Mar 2013 15:44:53 +0000 (08:44 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Tue, 12 Mar 2013 16:22:44 +0000 (09:22 -0700)
Use the uv_stride from the framebuffer rather than deriving it from the
y_stride.

Change-Id: I94581cb741539d094ff062b3d008235556903b8c

vp9/common/vp9_reconinter.c

index a516eb30b96e78a8c4712ea15e0d0b27a2d64d84..a0867ae7f77484dd2110c098182c66f2f95eb9c5 100644 (file)
@@ -533,8 +533,8 @@ void vp9_build_inter16x16_predictors_mbuv(MACROBLOCKD *xd,
         which_mv ? xd->mode_info_context->mbmi.need_to_clamp_secondmv
                  : xd->mode_info_context->mbmi.need_to_clamp_mvs;
     uint8_t *uptr, *vptr;
-    int pre_stride = which_mv ? xd->second_pre.y_stride
-                              : xd->pre.y_stride;
+    int pre_stride = which_mv ? xd->second_pre.uv_stride
+                              : xd->pre.uv_stride;
     int_mv _o16x16mv;
     int_mv _16x16mv;
 
@@ -561,7 +561,6 @@ void vp9_build_inter16x16_predictors_mbuv(MACROBLOCKD *xd,
     _16x16mv.as_mv.row &= xd->fullpixel_mask;
     _16x16mv.as_mv.col &= xd->fullpixel_mask;
 
-    pre_stride >>= 1;
     uptr = (which_mv ? xd->second_pre.u_buffer : xd->pre.u_buffer);
     vptr = (which_mv ? xd->second_pre.v_buffer : xd->pre.v_buffer);