Index: source/libvpx/vp8/encoder/mcomp.c |
diff --git a/source/libvpx/vp8/encoder/mcomp.c b/source/libvpx/vp8/encoder/mcomp.c |
index f848e8fb5711d1a1a75cb35c322859fd3981c979..676dd544d5efa61ae26fbd144da36479c20eb47a 100644 |
--- a/source/libvpx/vp8/encoder/mcomp.c |
+++ b/source/libvpx/vp8/encoder/mcomp.c |
@@ -223,14 +223,14 @@ int vp8_find_best_sub_pixel_step_iteratively(MACROBLOCK *x, BLOCK *b, BLOCKD *d, |
unsigned int quarteriters = 4; |
int thismse; |
- int minc = MAX(x->mv_col_min * 4, |
- (ref_mv->as_mv.col >> 1) - ((1 << mvlong_width) - 1)); |
- int maxc = MIN(x->mv_col_max * 4, |
- (ref_mv->as_mv.col >> 1) + ((1 << mvlong_width) - 1)); |
- int minr = MAX(x->mv_row_min * 4, |
- (ref_mv->as_mv.row >> 1) - ((1 << mvlong_width) - 1)); |
- int maxr = MIN(x->mv_row_max * 4, |
- (ref_mv->as_mv.row >> 1) + ((1 << mvlong_width) - 1)); |
+ int minc = VPXMAX(x->mv_col_min * 4, |
+ (ref_mv->as_mv.col >> 1) - ((1 << mvlong_width) - 1)); |
+ int maxc = VPXMIN(x->mv_col_max * 4, |
+ (ref_mv->as_mv.col >> 1) + ((1 << mvlong_width) - 1)); |
+ int minr = VPXMAX(x->mv_row_min * 4, |
+ (ref_mv->as_mv.row >> 1) - ((1 << mvlong_width) - 1)); |
+ int maxr = VPXMIN(x->mv_row_max * 4, |
+ (ref_mv->as_mv.row >> 1) + ((1 << mvlong_width) - 1)); |
int y_stride; |
int offset; |