mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
[cabac] fix cbf_y context for tr splits
This commit is contained in:
parent
59292d8808
commit
3e23fd0601
|
@ -724,7 +724,9 @@ static void encode_transform_coeff(
|
|||
if ((cur_cu->type == CU_INTRA || tr_depth > 0 || cb_flag_u || cb_flag_v) && !only_chroma && tree_type != UVG_CHROMA_T) {
|
||||
cabac->cur_ctx = &(cabac->ctx.qt_cbf_model_luma[*luma_cbf_ctx]);
|
||||
CABAC_BIN(cabac, cb_flag_y, "cbf_luma");
|
||||
*luma_cbf_ctx = 2 + cb_flag_y;
|
||||
if (tr_depth == 0) {
|
||||
*luma_cbf_ctx = 2 + cb_flag_y;
|
||||
}
|
||||
}
|
||||
|
||||
if (cb_flag_y | cb_flag_u | cb_flag_v) {
|
||||
|
|
Loading…
Reference in a new issue