diff --git a/src/search.c b/src/search.c index 17aaaf8f..f7cc5bc6 100644 --- a/src/search.c +++ b/src/search.c @@ -1765,7 +1765,7 @@ static double search_cu( left_cu = LCU_GET_CU_AT_PX(lcu, x_local - 1, y_local); } else { - left_cu = uvg_cu_array_at_const(state->tile->frame->chroma_cu_array, (x >> 1) - 1, y >> 1); + left_cu = uvg_cu_array_at_const(state->tile->frame->chroma_cu_array, x - 1, y); } } if (y) { @@ -1773,7 +1773,7 @@ static double search_cu( above_cu = LCU_GET_CU_AT_PX(lcu, x_local, y_local - 1); } else { - above_cu = uvg_cu_array_at_const(state->tile->frame->chroma_cu_array, x >> 1, (y >> 1) - 1); + above_cu = uvg_cu_array_at_const(state->tile->frame->chroma_cu_array, x, y - 1); } } split_tree_t count_tree = split_tree;