[mtt] correct indexing for chroma tree

This commit is contained in:
Joose Sainio 2023-01-04 11:19:01 +02:00 committed by Marko Viitanen
parent d3f42949a7
commit 1373a7ac1d

View file

@ -1806,7 +1806,10 @@ static double search_cu(
// If there is no separate chroma the block will always have chroma, otherwise it is the last block of the split that has the chroma
if (split_type == QT_SPLIT && completely_inside) {
const cu_info_t * const t = LCU_GET_CU_AT_PX(&split_lcu[0], new_cu_loc[split].local_x, new_cu_loc[split].local_y);
const cu_info_t * const t = LCU_GET_CU_AT_PX(
&split_lcu[0],
new_cu_loc[split].local_x >> (tree_type == UVG_CHROMA_T),
new_cu_loc[split].local_y >> (tree_type == UVG_CHROMA_T));
stop_to_qt |= GET_SPLITDATA(t, depth + 1) == QT_SPLIT;
}