mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
Move mv_cand initialization to better place
This commit is contained in:
parent
f17a500b77
commit
e87b12dec1
|
@ -1602,6 +1602,9 @@ static void search_pu_inter(encoder_state_t * const state,
|
|||
cur_pu->depth = depth;
|
||||
cur_pu->qp = state->qp;
|
||||
|
||||
// Default to candidate 0
|
||||
CU_SET_MV_CAND(cur_pu, 0, 0);
|
||||
CU_SET_MV_CAND(cur_pu, 1, 0);
|
||||
|
||||
info->state = state;
|
||||
info->pic = frame->source;
|
||||
|
@ -1622,10 +1625,6 @@ static void search_pu_inter(encoder_state_t * const state,
|
|||
lcu
|
||||
);
|
||||
|
||||
// Default to candidate 0
|
||||
CU_SET_MV_CAND(cur_pu, 0, 0);
|
||||
CU_SET_MV_CAND(cur_pu, 1, 0);
|
||||
|
||||
// Merge Analysis starts here
|
||||
merge->size = 0;
|
||||
for (int i = 0; i < MRG_MAX_NUM_CANDS; ++i) {
|
||||
|
|
Loading…
Reference in a new issue