Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 3 files). Show all
Unified · Split
| @@ -2140,6 +2140,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 2139 unmodified lines | |||
| 2140 | 2140 | ||
| 2141 | bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferInfo* pDstInfo) { | 2141 | bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferInfo* pDstInfo) { |
| 2142 | PAccessUnit pAu = pCtx->pAccessUnitList; | 2142 | PAccessUnit pAu = pCtx->pAccessUnitList; |
| 2143 | if (pAu->uiAvailUnitsNum == 0) | ||
| 2144 | return true; | ||
| 2143 | PNalUnit pCurNal = pAu->pNalUnitsList[pAu->uiEndPos]; | 2145 | PNalUnit pCurNal = pAu->pNalUnitsList[pAu->uiEndPos]; |
| 2144 | if ((pCtx->iTotalNumMbRec != 0) | 2146 | if ((pCtx->iTotalNumMbRec != 0) |
| 2145 | && (CheckAccessUnitBoundaryExt (&pCtx->sLastNalHdrExt, &pCurNal->sNalHeaderExt, &pCtx->sLastSliceHeader, | 2147 | && (CheckAccessUnitBoundaryExt (&pCtx->sLastNalHdrExt, &pCurNal->sNalHeaderExt, &pCtx->sLastSliceHeader, |