mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 02:24:07 +00:00
Fix missing offset in LCU range computation for wavefronts
This commit is contained in:
parent
dc34a5eac6
commit
4de5660254
|
@ -991,8 +991,8 @@ int encoder_state_init(encoder_state * const child_state, encoder_state * const
|
||||||
|
|
||||||
//Restrict to the current wavefront row if needed
|
//Restrict to the current wavefront row if needed
|
||||||
if (child_state->type == ENCODER_STATE_TYPE_WAVEFRONT_ROW) {
|
if (child_state->type == ENCODER_STATE_TYPE_WAVEFRONT_ROW) {
|
||||||
lcu_start = MAX(lcu_start, child_state->wfrow->lcu_offset_y * child_state->tile->cur_pic->width_in_lcu);
|
lcu_start = MAX(lcu_start, (child_state->wfrow->lcu_offset_y - child_state->tile->lcu_offset_y) * child_state->tile->cur_pic->width_in_lcu);
|
||||||
lcu_end = MIN(lcu_end, (child_state->wfrow->lcu_offset_y + 1) * child_state->tile->cur_pic->width_in_lcu);
|
lcu_end = MIN(lcu_end, (child_state->wfrow->lcu_offset_y - child_state->tile->lcu_offset_y + 1) * child_state->tile->cur_pic->width_in_lcu);
|
||||||
}
|
}
|
||||||
|
|
||||||
child_state->lcu_order_count = lcu_end - lcu_start;
|
child_state->lcu_order_count = lcu_end - lcu_start;
|
||||||
|
|
Loading…
Reference in a new issue