mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
[mtt] Fix reading uninitialized data for local chroma tree
This commit is contained in:
parent
084572c890
commit
ccb9d57645
26
src/search.c
26
src/search.c
|
@ -189,15 +189,27 @@ static INLINE void initialize_partial_work_tree(
|
||||||
to->top_ref = from->top_ref;
|
to->top_ref = from->top_ref;
|
||||||
*LCU_GET_TOP_RIGHT_CU(to) = *LCU_GET_TOP_RIGHT_CU(from);
|
*LCU_GET_TOP_RIGHT_CU(to) = *LCU_GET_TOP_RIGHT_CU(from);
|
||||||
}
|
}
|
||||||
}
|
if (x_limit != LCU_WIDTH >> (tree_type == UVG_CHROMA_T)) {
|
||||||
if (x_limit != LCU_WIDTH >> (tree_type == UVG_CHROMA_T)) {
|
for (int y = y_start; y < y_limit; y += SCU_WIDTH) {
|
||||||
for (int y = y_start; y < y_limit; y += SCU_WIDTH) {
|
memset(LCU_GET_CU_AT_PX(to, x_limit, y), 0, sizeof(cu_info_t));
|
||||||
memset(LCU_GET_CU_AT_PX(to, x_limit, y), 0, sizeof(cu_info_t));
|
}
|
||||||
|
}
|
||||||
|
if (y_limit != LCU_WIDTH >> (tree_type == UVG_CHROMA_T)) {
|
||||||
|
for (int x = x_start; x < x_limit; x += SCU_WIDTH) {
|
||||||
|
memset(LCU_GET_CU_AT_PX(to, x, y_limit), 0, sizeof(cu_info_t));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (y_limit != LCU_WIDTH >> (tree_type == UVG_CHROMA_T)) {
|
else {
|
||||||
for (int x = x_start; x < x_limit; x += SCU_WIDTH) {
|
if (x_limit != LCU_WIDTH >> (tree_type == UVG_CHROMA_T)) {
|
||||||
memset(LCU_GET_CU_AT_PX(to, x, y_limit), 0, sizeof(cu_info_t));
|
for (int y = y_start; y < y_limit; y += SCU_WIDTH) {
|
||||||
|
memset(LCU_GET_CU_AT_PX(to, x_limit, y), 0, sizeof(cu_info_t));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (y_limit != LCU_WIDTH >> (tree_type == UVG_CHROMA_T)) {
|
||||||
|
for (int x = x_start; x < x_limit; x += SCU_WIDTH) {
|
||||||
|
memset(LCU_GET_CU_AT_PX(to, x, y_limit), 0, sizeof(cu_info_t));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue