follow the spec
Unified · Split
| @@ -1227,9 +1227,12 @@ static void set_cu_tabs(const VVCLocalContext *lc, const CodingUnit *cu) · 1226 unmodified lines | ||
| 1227 | 1227 | const VVCFrameContext *fc = lc->fc; |
| 1228 | 1228 | const TransformUnit *tu = cu->tus.head; |
| 1229 | 1229 | |
| 1230 | − set_cb_tab(lc, fc->tab.cpm[cu->ch_type], cu->pred_mode); | |
| 1231 | − if (cu->tree_type != DUAL_TREE_CHROMA) | |
| 1230 | + if (cu->tree_type != DUAL_TREE_CHROMA) { | |
| 1231 | + set_cb_tab(lc, fc->tab.cpm[LUMA], cu->pred_mode); | |
| 1232 | 1232 | set_cb_tab(lc, fc->tab.skip, cu->skip_flag); |
| 1233 | + } | |
| 1234 | + if (fc->ps.sps->r->sps_chroma_format_idc && cu->tree_type != DUAL_TREE_LUMA) | |
| 1235 | + set_cb_tab(lc, fc->tab.cpm[CHROMA], cu->pred_mode); | |
| 1233 | 1236 | |
| 1234 | 1237 | while (tu) { |
| 1235 | 1238 | for (int j = 0; j < tu->nb_tbs; j++) { |