]> granicus.if.org Git - libvpx/commitdiff
fix IOCs
authorYaowu Xu <yaowu@google.com>
Fri, 31 Jan 2014 23:06:31 +0000 (15:06 -0800)
committerYaowu Xu <yaowu@google.com>
Fri, 31 Jan 2014 23:07:51 +0000 (15:07 -0800)
Left shift of negative values caused IOC warnings.

Change-Id: I6f41b020ca0ff51f7861719d41393e9460b75d4e

vp9/encoder/vp9_pickmode.c

index 2b9e31f08fd8b9bed4a91218b31c119ed378280b..bd28ea51ef2d7d19793fc9eb4dcfbbb997208e44 100644 (file)
@@ -124,8 +124,8 @@ static int full_pixel_motion_search(VP9_COMP *cpi, MACROBLOCK *x,
                                    stride, 0x7fffffff);
 
   // scale to 1/8 pixel resolution
-  tmp_mv->as_mv.row = tmp_mv->as_mv.row << 3;
-  tmp_mv->as_mv.col = tmp_mv->as_mv.col << 3;
+  tmp_mv->as_mv.row = tmp_mv->as_mv.row * 8;
+  tmp_mv->as_mv.col = tmp_mv->as_mv.col * 8;
 
   // calculate the bit cost on motion vector
   *rate_mv = vp9_mv_bit_cost(&tmp_mv->as_mv, &ref_mv.as_mv,