Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 2 files). Show all
Unified · Split
| @@ -535,6 +535,10 @@ int32_t ParseIntra8x8Mode (PWelsDecoderContext pCtx, PWelsNeighAvail pNeighAvail · 534 unmodified lines | ||
| 535 | 535 | pCurDqLayer->pIntraPredMode[iMbXy][4] = pIntraPredMode[4 + 8 * 1]; |
| 536 | 536 | pCurDqLayer->pIntraPredMode[iMbXy][5] = pIntraPredMode[4 + 8 * 2]; |
| 537 | 537 | pCurDqLayer->pIntraPredMode[iMbXy][6] = pIntraPredMode[4 + 8 * 3]; |
| 538 | + | |
| 539 | + if (pCtx->pSps->uiChromaFormatIdc == 0) | |
| 540 | + return ERR_NONE; | |
| 541 | + | |
| 538 | 542 | if (pCurDqLayer->sLayerInfo.pPps->bEntropyCodingModeFlag) { |
| 539 | 543 | WELS_READ_VERIFY (ParseIntraPredModeChromaCabac (pCtx, uiNeighAvail, iCode)); |
| 540 | 544 | if (iCode > MAX_PRED_MODE_ID_CHROMA) { |