mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Small fixes
This commit is contained in:
parent
dcd7acf4fd
commit
e8cc2d8f6a
|
@ -790,8 +790,8 @@ static void encoder_state_encode(encoder_state_t * const main_state) {
|
|||
static void encoder_ref_insertion_sort(const encoder_state_t *const state, uint8_t reflist[16], uint8_t length) {
|
||||
|
||||
for (uint8_t i = 1; i < length; ++i) {
|
||||
const int32_t cur_poc = state->frame->ref->pocs[reflist[i]];
|
||||
uint8_t cur_idx = reflist[i];
|
||||
const uint8_t cur_idx = reflist[i];
|
||||
const int32_t cur_poc = state->frame->ref->pocs[cur_idx];
|
||||
int8_t j = i;
|
||||
while (j > 0 && cur_poc < state->frame->ref->pocs[reflist[j - 1]]) {
|
||||
reflist[j] = reflist[j - 1];
|
||||
|
|
|
@ -943,7 +943,7 @@ static INLINE void apply_mv_scaling(const encoder_state_t *state,
|
|||
current_cu->inter.mv_ref[current_reflist]]],
|
||||
state->frame->poc,
|
||||
state->frame->ref->pocs[
|
||||
state->frame->ref_LX[current_reflist][
|
||||
state->frame->ref_LX[neighbor_reflist][
|
||||
neighbor_cu->inter.mv_ref[neighbor_reflist]]],
|
||||
mv_cand);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue