From 8f866ff83af7e69cc195426e7ecea9e5453a9b7a Mon Sep 17 00:00:00 2001 From: Ari Lemmetti Date: Mon, 26 Aug 2019 20:10:10 +0300 Subject: [PATCH] Use correct index --- src/search_inter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search_inter.c b/src/search_inter.c index d3eb762d..e0486f9b 100644 --- a/src/search_inter.c +++ b/src/search_inter.c @@ -1589,7 +1589,7 @@ static void search_pu_inter(encoder_state_t * const state, if (cfg->rdo >= 2) { kvz_inter_recon_cu(state, lcu, x, y, width); - mrg_costs[merge_idx] = kvz_satd_any_size(width, height, + mrg_costs[num_rdo_cands] = kvz_satd_any_size(width, height, lcu->rec.y + y_local * LCU_WIDTH + x_local, LCU_WIDTH, lcu->ref.y + y_local * LCU_WIDTH + x_local, LCU_WIDTH); }