ref: 08da66d5df27c5eabcc84f420ae6fb3969bf1f73
parent: 891c4b3ce61e76a5fea48b37cc7a5ac91e02d68a
parent: e14acc942b33d525b135108d197d4bb4809cb973
author: Hien Ho <hienho@google.com>
date: Fri Oct 4 11:53:02 EDT 2019
Merge "vp9/common/vp9_reconinter: fix int sanitizer warnings"
--- a/vp9/common/vp9_reconinter.c
+++ b/vp9/common/vp9_reconinter.c
@@ -96,8 +96,8 @@
const int spel_right = spel_left - SUBPEL_SHIFTS;
const int spel_top = (VP9_INTERP_EXTEND + bh) << SUBPEL_BITS;
const int spel_bottom = spel_top - SUBPEL_SHIFTS;
- MV clamped_mv = { src_mv->row * (1 << (1 - ss_y)),
- src_mv->col * (1 << (1 - ss_x)) };
+ MV clamped_mv = { (short)(src_mv->row * (1 << (1 - ss_y))),
+ (short)(src_mv->col * (1 << (1 - ss_x))) };
assert(ss_x <= 1);
assert(ss_y <= 1);