Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all
Unified · Split
| @@ -89,8 +89,10 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 88 unmodified lines | |||
| 89 | uint8_t* pNalBs = NULL; | 89 | uint8_t* pNalBs = NULL; |
| 90 | pParser->uiOutBsTimeStamp = (pCurAu->pNalUnitsList [iIdx]) ? pCurAu->pNalUnitsList [iIdx]->uiTimeStamp : 0; | 90 | pParser->uiOutBsTimeStamp = (pCurAu->pNalUnitsList [iIdx]) ? pCurAu->pNalUnitsList [iIdx]->uiTimeStamp : 0; |
| 91 | //pParser->iNalNum = 0; | 91 | //pParser->iNalNum = 0; |
| 92 | pParser->iSpsWidthInPixel = (pCtx->pSps->iMbWidth << 4); | 92 | pParser->iSpsWidthInPixel = (pCtx->pSps->iMbWidth << 4) - ((pCtx->pSps->sFrameCrop.iLeftOffset + |
| 93 | pParser->iSpsHeightInPixel = (pCtx->pSps->iMbHeight << 4); | 93 | pCtx->pSps->sFrameCrop.iRightOffset) << 1); |
| 94 | pParser->iSpsHeightInPixel = (pCtx->pSps->iMbHeight << 4) - ((pCtx->pSps->sFrameCrop.iTopOffset + | ||
| 95 | pCtx->pSps->sFrameCrop.iBottomOffset) << 1); | ||
| 94 | 96 | ||
| 95 | if (pCurAu->pNalUnitsList [iIdx]->sNalHeaderExt.bIdrFlag) { //IDR | 97 | if (pCurAu->pNalUnitsList [iIdx]->sNalHeaderExt.bIdrFlag) { //IDR |
| 96 | if (pCtx->bFrameFinish) { //add required sps/pps | 98 | if (pCtx->bFrameFinish) { //add required sps/pps |