Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 5 files). Show all
Unified · Split
| @@ -1318,6 +1318,18 @@ void ForceClearCurrentNal (PAccessUnit pAu) { · 1317 unmodified lines | |||
| 1318 | -- pAu->uiAvailUnitsNum; | 1318 | -- pAu->uiAvailUnitsNum; |
| 1319 | } | 1319 | } |
| 1320 | 1320 | ||
| 1321 | void ForceResetParaSetStatusAndAUList (PWelsDecoderContext pCtx) { | ||
| 1322 | pCtx->bSpsExistAheadFlag = false; | ||
| 1323 | pCtx->bSubspsExistAheadFlag = false; | ||
| 1324 | pCtx->bPpsExistAheadFlag = false; | ||
| 1325 | |||
| 1326 | // Force clear the AU list | ||
| 1327 | pCtx->pAccessUnitList->uiAvailUnitsNum = 0; | ||
| 1328 | pCtx->pAccessUnitList->uiActualUnitsNum = 0; | ||
| 1329 | pCtx->pAccessUnitList->uiStartPos = 0; | ||
| 1330 | pCtx->pAccessUnitList->uiEndPos = 0; | ||
| 1331 | pCtx->pAccessUnitList->bCompletedAuFlag = false; | ||
| 1332 | } | ||
| 1321 | 1333 | ||
| 1322 | void CheckAvailNalUnitsListContinuity (PWelsDecoderContext pCtx, int32_t iStartIdx, int32_t iEndIdx) { | 1334 | void CheckAvailNalUnitsListContinuity (PWelsDecoderContext pCtx, int32_t iStartIdx, int32_t iEndIdx) { |
| 1323 | PAccessUnit pCurAu = pCtx->pAccessUnitList; | 1335 | PAccessUnit pCurAu = pCtx->pAccessUnitList; |