History

ec disable bug fix

huili2 committed 12 years ago

Commit 869c5671 parent 3ad4d901 file · +3 −2Browse 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+3−2
@@ -1965,7 +1965,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 1964 unmodified lines
19651965 if (dq_cur->uiLayerDqId == kuiTargetLayerDqId) {
19661966 if (!pCtx->bInstantDecFlag) {
19671967 //Do error concealment here
1968− if (NeedErrorCon (pCtx)) {
1968+ if ((NeedErrorCon (pCtx)) && (pCtx->eErrorConMethod != ERROR_CON_DISABLE)) {
19691969 ImplementErrorCon (pCtx);
19701970 pCtx->iTotalNumMbRec = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
19711971 pCtx->pDec->iSpsId = pCtx->pSps->iSpsId;
@@ -2022,7 +2022,8 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn · 50 unmodified lines
20222022 MarkECFrameAsRef (pCtx);
20232023 }
20242024 } else {
2025− DecodeFrameConstruction (pCtx, ppDst, pDstInfo);
2025+ if (DecodeFrameConstruction (pCtx, ppDst, pDstInfo))
2026+ return false;
20262027 }
20272028 pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num
20282029 if (pCtx->bLastHasMmco5)

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