Small fixes

This commit is contained in:
Miika Metsoila 2017-07-07 13:58:19 +03:00
parent dcd7acf4fd
commit e8cc2d8f6a
2 changed files with 3 additions and 3 deletions

View file

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

View file

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