mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Fix overlapping memcpy in kvz_search_cu_smp.
The destination and source pointers might be equal. Fixed by replacing the memcpy call with a simple assignment.
This commit is contained in:
parent
29af8bcd21
commit
41e75daed7
|
@ -1654,7 +1654,7 @@ void kvz_search_cu_smp(encoder_state_t * const state,
|
||||||
for (int x = x_pu; x < x_pu + width_pu; ++x) {
|
for (int x = x_pu; x < x_pu + width_pu; ++x) {
|
||||||
cu_info_t *scu = LCU_GET_CU(lcu, x, y);
|
cu_info_t *scu = LCU_GET_CU(lcu, x, y);
|
||||||
scu->type = CU_INTER;
|
scu->type = CU_INTER;
|
||||||
memcpy(&scu->inter, &cur_pu->inter, sizeof(cur_pu->inter));
|
scu->inter = cur_pu->inter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue