History

prevent from return if slice decoding error for EC

huili2 committed 12 years ago

Commit 5c064ed1 parent f5eb6d41 file · +10 −4Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+10−4
@@ -1856,7 +1856,9 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 1855 unmodified lines
18561856 HandleReferenceLost (pCtx, pNalCur);
18571857 WelsLog (pCtx, WELS_LOG_WARNING, "reference picture introduced by this frame is lost during transmission! uiTId: %d\n",
18581858 pNalCur->sNalHeaderExt.uiTemporalId);
1859− return iRet;
1859+ if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
1860+ return iRet;
1861+ }
18601862 }
18611863 }
18621864
@@ -1867,7 +1869,9 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 4 unmodified lines
18671869 WelsLog (pCtx, WELS_LOG_WARNING, "DecodeCurrentAccessUnit() failed (%d) in frame: %d uiDId: %d uiQId: %d\n",
18681870 iRet, pSh->iFrameNum, iCurrIdD, iCurrIdQ);
18691871 HandleReferenceLostL0 (pCtx, pNalCur);
1870− return iRet;
1872+ if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
1873+ return iRet;
1874+ }
18711875 }
18721876 if (bReconstructSlice) {
18731877 if (WelsDecodeConstructSlice (pCtx, pNalCur)) {
@@ -1923,8 +1927,10 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 49 unmodified lines
19231927 if (uiNalRefIdc > 0) {
19241928 iRet = WelsMarkAsRef (pCtx);
19251929 if (iRet != ERR_NONE) {
1926− pCtx->pDec = NULL;
1927− return iRet;
1930+ if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
1931+ pCtx->pDec = NULL;
1932+ return iRet;
1933+ }
19281934 }
19291935 ExpandReferencingPicture (pCtx->pDec, pCtx->sExpandPicFunc.pExpandLumaPicture,
19301936 pCtx->sExpandPicFunc.pExpandChromaPicture);

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