History

Fix the bug that the pDec not set to NULL when early exit Add more judgement for diff set EC mode under no-delay call

Haibo Zhu committed 11 years ago

Commit 264cf571 parent 9a55a861 file · +4 −0Browse files

Showing the changes to codec/decoder/core/src (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+4−0
@@ -2078,6 +2078,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 2077 unmodified lines
20782078 "reference picture introduced by this frame is lost during transmission! uiTId: %d",
20792079 pNalCur->sNalHeaderExt.uiTemporalId);
20802080 if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
2081+ if (pCtx->iTotalNumMbRec == 0)
2082+ pCtx->pDec = NULL;
20812083 return iRet;
20822084 }
20832085 }
@@ -2093,6 +2095,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 9 unmodified lines
20932095 bAllRefComplete = false;
20942096 HandleReferenceLostL0 (pCtx, pNalCur);
20952097 if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
2098+ if (pCtx->iTotalNumMbRec == 0)
2099+ pCtx->pDec = NULL;
20962100 return iRet;
20972101 }
20982102 }

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