ref: 869c567f0415f3302e2f35b4a32dcf4fa314dc19
parent: 3ad4d9070ef0cf73f220e0ea17df7e3bcae84ae1
author: huili2 <[email protected]>
date: Tue Oct 14 22:41:44 EDT 2014
ec disable bug fix
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -1965,7 +1965,7 @@
if (dq_cur->uiLayerDqId == kuiTargetLayerDqId) {
if (!pCtx->bInstantDecFlag) {
//Do error concealment here
- if (NeedErrorCon (pCtx)) {
+ if ((NeedErrorCon (pCtx)) && (pCtx->eErrorConMethod != ERROR_CON_DISABLE)) {
ImplementErrorCon (pCtx);
pCtx->iTotalNumMbRec = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
pCtx->pDec->iSpsId = pCtx->pSps->iSpsId;
@@ -2022,7 +2022,8 @@
MarkECFrameAsRef (pCtx);
}
} else {
- DecodeFrameConstruction (pCtx, ppDst, pDstInfo);
+ if (DecodeFrameConstruction (pCtx, ppDst, pDstInfo))
+ return false;
}
pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num
if (pCtx->bLastHasMmco5)