mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 12:44:07 +00:00
Reverse L0 list sort direction
This commit is contained in:
parent
83dc7e7f50
commit
6bd78a3da7
|
@ -793,7 +793,7 @@ static void encoder_ref_insertion_sort(const encoder_state_t *const state, uint8
|
|||
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]]) {
|
||||
while (j > 0 && cur_poc > state->frame->ref->pocs[reflist[j - 1]]) {
|
||||
reflist[j] = reflist[j - 1];
|
||||
--j;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue