mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 12:44:07 +00:00
[inter] Fix inter reconstruction, correct function was in wrong branch
This commit is contained in:
parent
78363ccab0
commit
cb9f9381c3
|
@ -1246,7 +1246,7 @@ void kvz_encode_coding_tree(encoder_state_t * const state,
|
|||
}
|
||||
|
||||
// Encode skip flag
|
||||
if (state->frame->slicetype != KVZ_SLICE_I) {
|
||||
if (state->frame->slicetype != KVZ_SLICE_I && cu_width != 4) {
|
||||
|
||||
int8_t ctx_skip = 0;
|
||||
|
||||
|
|
|
@ -393,7 +393,6 @@ static void inter_recon_unipred(const encoder_state_t * const state,
|
|||
width, height,
|
||||
mv_param, lcu);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// With an integer MV, copy pixels directly from the reference.
|
||||
const int lcu_pu_index = pu_in_lcu.y * LCU_WIDTH + pu_in_lcu.x;
|
||||
|
@ -403,7 +402,8 @@ static void inter_recon_unipred(const encoder_state_t * const state,
|
|||
&lcu->rec.y[lcu_pu_index], LCU_WIDTH,
|
||||
width, height,
|
||||
&mv_in_frame);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
const int frame_mv_index = mv_in_frame.y * ref->stride + mv_in_frame.x;
|
||||
kvz_pixels_blit(&ref->y[frame_mv_index],
|
||||
&lcu->rec.y[lcu_pu_index],
|
||||
|
@ -411,6 +411,7 @@ static void inter_recon_unipred(const encoder_state_t * const state,
|
|||
ref->stride, LCU_WIDTH);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!predict_chroma) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue