ref: dc9af3b5095160d24b063bd0539966041b3f6b70
parent: 6a4e2ddabc7af605ab65b6510539e6aa9d63b5d2
author: Yaowu Xu <yaowu@google.com>
date: Fri Jan 31 10:06:31 EST 2014
fix IOCs Left shift of negative values caused IOC warnings. Change-Id: I6f41b020ca0ff51f7861719d41393e9460b75d4e
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -124,8 +124,8 @@
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,
--
⑨