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 | pCurDqLayer->pIntraPredMode[iMbXy][4] = pIntraPredMode[4 + 8 * 1]; | 535 | pCurDqLayer->pIntraPredMode[iMbXy][4] = pIntraPredMode[4 + 8 * 1]; |
| 536 | pCurDqLayer->pIntraPredMode[iMbXy][5] = pIntraPredMode[4 + 8 * 2]; | 536 | pCurDqLayer->pIntraPredMode[iMbXy][5] = pIntraPredMode[4 + 8 * 2]; |
| 537 | pCurDqLayer->pIntraPredMode[iMbXy][6] = pIntraPredMode[4 + 8 * 3]; | 537 | pCurDqLayer->pIntraPredMode[iMbXy][6] = pIntraPredMode[4 + 8 * 3]; |
| 538 | |||
| 539 | if (pCtx->pSps->uiChromaFormatIdc == 0) | ||
| 540 | return ERR_NONE; | ||
| 541 | |||
| 538 | if (pCurDqLayer->sLayerInfo.pPps->bEntropyCodingModeFlag) { | 542 | if (pCurDqLayer->sLayerInfo.pPps->bEntropyCodingModeFlag) { |
| 539 | WELS_READ_VERIFY (ParseIntraPredModeChromaCabac (pCtx, uiNeighAvail, iCode)); | 543 | WELS_READ_VERIFY (ParseIntraPredModeChromaCabac (pCtx, uiNeighAvail, iCode)); |
| 540 | if (iCode > MAX_PRED_MODE_ID_CHROMA) { | 544 | if (iCode > MAX_PRED_MODE_ID_CHROMA) { |