shithub: libvpx

Download patch

ref: 732242ab3d00268782923e73e11e5a5fbd426bb4
parent: a61ac8e2e78bac70bee6f8371ad91cd8e8efaaec
parent: dbc963a42fa4b3544a0188867561050511d3ad33
author: Marco Paniconi <marpan@google.com>
date: Thu Jan 21 19:09:27 EST 2016

Merge "vp9 pickmode: Fix the shift on negative value."

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -117,8 +117,8 @@
     MV_REF *candidate =
         &cm->prev_frame->mvs[(mi_col>>1) + (mi_row>>1) * (cm->mi_cols>>1)];
     if (candidate->mv[0].as_int != INVALID_MV) {
-        base_mv->as_mv.row = (candidate->mv[0].as_mv.row << 1);
-        base_mv->as_mv.col = (candidate->mv[0].as_mv.col << 1);
+        base_mv->as_mv.row = (candidate->mv[0].as_mv.row * 2);
+        base_mv->as_mv.col = (candidate->mv[0].as_mv.col * 2);
       clamp_mv_ref(&base_mv->as_mv, xd);
     } else {
       base_mv->as_int = INVALID_MV;