ref: df14d9f4e75a820db9298e5e064cfe80d90e6e86
parent: f4656961ca4246979ea16d6c104c0931df2b9935
parent: 726d1b841b8101fbfa75eb9832e9baa9e477c1d5
author: Yunqing Wang <[email protected]>
date: Tue Aug 4 17:00:41 EDT 2015
Merge "Minor adjustment in diagonal sub-pixel point checking"
--- a/vp9/encoder/vp9_mcomp.c
+++ b/vp9/encoder/vp9_mcomp.c
@@ -703,8 +703,8 @@
}
// Check diagonal sub-pixel position
- tc = bc + (cost_array[0] < cost_array[1] ? -hstep : hstep);
- tr = br + (cost_array[2] < cost_array[3] ? -hstep : hstep);
+ tc = bc + (cost_array[0] <= cost_array[1] ? -hstep : hstep);
+ tr = br + (cost_array[2] <= cost_array[3] ? -hstep : hstep);
if (tc >= minc && tc <= maxc && tr >= minr && tr <= maxr) {
const uint8_t *const pre_address = y + (tr >> 3) * y_stride + (tc >> 3);
MV this_mv = {tr, tc};