Remove hard code number from full_pixel_diamond()
Use the new search pattern data structure that tells the number of
iterations to run.
Change-Id: I653fae774cd10bec1313e686f207fa46cb9b7aa0
diff --git a/av1/encoder/mcomp.c b/av1/encoder/mcomp.c
index e246b4a..8776747 100644
--- a/av1/encoder/mcomp.c
+++ b/av1/encoder/mcomp.c
@@ -2262,7 +2262,7 @@
break;
case NSTEP:
var = full_pixel_diamond(x, mvp_full, step_param, error_per_bit,
- MAX_MVSEARCH_STEPS - 1 - step_param, cost_list,
+ cfg->ss_count - 1 - step_param, cost_list,
fn_ptr, ref_mv, cfg, NULL, NULL, 0, 0);
break;
default: assert(0 && "Invalid search method.");