mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
[mtt] Fix reading uninitialized data for local chroma tree
This commit is contained in:
parent
084572c890
commit
ccb9d57645
14
src/search.c
14
src/search.c
|
@ -189,7 +189,6 @@ static INLINE void initialize_partial_work_tree(
|
|||
to->top_ref = from->top_ref;
|
||||
*LCU_GET_TOP_RIGHT_CU(to) = *LCU_GET_TOP_RIGHT_CU(from);
|
||||
}
|
||||
}
|
||||
if (x_limit != LCU_WIDTH >> (tree_type == UVG_CHROMA_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));
|
||||
|
@ -200,6 +199,19 @@ static INLINE void initialize_partial_work_tree(
|
|||
memset(LCU_GET_CU_AT_PX(to, x, y_limit), 0, sizeof(cu_info_t));
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (x_limit != LCU_WIDTH >> (tree_type == UVG_CHROMA_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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static INLINE void copy_cu_pixels(
|
||||
|
|
Loading…
Reference in a new issue