mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
[mtt] Fix reading uninitialized data for local chroma tree
This commit is contained in:
parent
9acdab3209
commit
af23c81afa
14
src/search.c
14
src/search.c
|
@ -190,7 +190,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));
|
||||
|
@ -202,6 +201,19 @@ static INLINE void initialize_partial_work_tree(
|
|||
}
|
||||
}
|
||||
}
|
||||
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(
|
||||
lcu_t *from,
|
||||
|
|
Loading…
Reference in a new issue