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