]> granicus.if.org Git - libvpx/blobdiff - vp9/encoder/vp9_mcomp.c
Merge "libs.mk, testdata: rm redundant test of LIBVPX_TEST_DATA"
[libvpx] / vp9 / encoder / vp9_mcomp.c
index 4071755b0cf98e440a08b836d159fb8f966e7c81..b9a104a609b8d52e36b07d7e697514aab65cff61 100644 (file)
@@ -1620,7 +1620,7 @@ int vp9_diamond_search_sad_c(const MACROBLOCK *x,
 //  const search_site *ss = &cfg->ss[search_param * cfg->searches_per_step];
   const MV *ss_mv = &cfg->ss_mv[search_param * cfg->searches_per_step];
   const intptr_t *ss_os = &cfg->ss_os[search_param * cfg->searches_per_step];
-  const int tot_steps = (cfg->total_steps) - search_param;
+  const int tot_steps = cfg->total_steps - search_param;
 
   const MV fcenter_mv = {center_mv->row >> 3, center_mv->col >> 3};
   clamp_mv(ref_mv, x->mv_col_min, x->mv_col_max, x->mv_row_min, x->mv_row_max);