summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2014-01-24 12:06:39 -0800
committerYaowu Xu <yaowu@google.com>2014-01-24 12:49:44 -0800
commit8971338c6bb0ff3aeaa315d9f049611513c30141 (patch)
tree9196c784bad1fb4d93066711c12cde03910253c8 /vp9/encoder
parente5034f65e54234d5ef6a99ddb405208c91bf812e (diff)
downloadlibvpx-8971338c6bb0ff3aeaa315d9f049611513c30141.tar
libvpx-8971338c6bb0ff3aeaa315d9f049611513c30141.tar.gz
libvpx-8971338c6bb0ff3aeaa315d9f049611513c30141.tar.bz2
libvpx-8971338c6bb0ff3aeaa315d9f049611513c30141.zip
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
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_rdopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c
index 5f2f8a819..b7ea34679 100644
--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -428,7 +428,7 @@ static void model_rd_for_sb(VP9_COMP *cpi, BLOCK_SIZE bsize,
}
*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,