History

avcodec/vvcdec: set CuPredMode table for chroma

follow the spec

Nuo Mi committed 2 years ago

Commit 37ebebd1 parent ab2c9df1 file · +5 −2Browse files

Unified · Split

libavcodec/vvc/vvc_ctu.c+5−2
@@ -1227,9 +1227,12 @@ static void set_cu_tabs(const VVCLocalContext *lc, const CodingUnit *cu) · 1226 unmodified lines
12271227 const VVCFrameContext *fc = lc->fc;
12281228 const TransformUnit *tu = cu->tus.head;
12291229
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);
12321232 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);
12331236
12341237 while (tu) {
12351238 for (int j = 0; j < tu->nb_tbs; j++) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t