Use correct index

This commit is contained in:
Ari Lemmetti 2019-08-26 20:10:10 +03:00
parent 2343958a14
commit 8f866ff83a

View file

@ -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);
}