History

(1) Reset parameter set status and clear AU list when out of memory (2) Free un-complete malloc memory, keep the original state, special when increase memory

Haibo Zhu committed 11 years ago

Commit 57043d11 parent 091e5cb5 files · +59 −17Browse files

Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 5 files). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+12−0
@@ -1318,6 +1318,18 @@ void ForceClearCurrentNal (PAccessUnit pAu) { · 1317 unmodified lines
13181318 -- pAu->uiAvailUnitsNum;
13191319 }
13201320
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+}
13211333
13221334 void CheckAvailNalUnitsListContinuity (PWelsDecoderContext pCtx, int32_t iStartIdx, int32_t iEndIdx) {
13231335 PAccessUnit pCurAu = pCtx->pAccessUnitList;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t