mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-12-17 19:04:05 +00:00
Don't write jccr flag for inter CUs when it cannot be enabled
This commit is contained in:
parent
f5753394a0
commit
03fd8f1545
|
@ -594,7 +594,13 @@ static void encode_transform_coeff(encoder_state_t * const state,
|
|||
|
||||
state->must_code_qp_delta = false;
|
||||
}
|
||||
if((cb_flag_u || cb_flag_v ) && (depth != 4 || only_chroma) && state->encoder_control->cfg.jccr) {
|
||||
if((
|
||||
((cb_flag_u || cb_flag_v )
|
||||
&& cur_cu->type == CU_INTRA)
|
||||
|| (cb_flag_u && cb_flag_v))
|
||||
&& (depth != 4 || only_chroma)
|
||||
&& state->encoder_control->cfg.jccr
|
||||
) {
|
||||
cabac->cur_ctx = &cabac->ctx.joint_cb_cr[cb_flag_u * 2 + cb_flag_v - 1];
|
||||
CABAC_BIN(cabac, cur_pu->joint_cb_cr != 0, "tu_joint_cbcr_residual_flag");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue