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:
Arttu Ylä-Outinen 2016-06-14 16:19:43 +09:00
parent 29af8bcd21
commit 41e75daed7

View file

@ -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;
} }
} }
} }