ref: 8971338c6bb0ff3aeaa315d9f049611513c30141
parent: e5034f65e54234d5ef6a99ddb405208c91bf812e
author: Yaowu Xu <yaowu@google.com>
date: Fri Jan 24 07:06:39 EST 2014
change to avoid IOC SSE for a 64x64 block with 3 planes can go as high as 3*2^28. So left shift by 4 may overflow 32 bit int. Change-Id: I63c84aa56894788bb987299badabbd7cc6fd0be6
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -428,7 +428,7 @@
}
*out_rate_sum = rate_sum;
- *out_dist_sum = dist_sum << 4;
+ *out_dist_sum = (int64_t)dist_sum << 4;
}
static void model_rd_for_sb_y_tx(VP9_COMP *cpi, BLOCK_SIZE bsize,
--
⑨