ref: 264cf5761697e76c52b22caa3b97c8cc9e4ce8ea
parent: 9a55a8609e35dc3bafaeab1deb1c3cce281d4e67
author: Haibo Zhu <haibozhu@cisco.com>
date: Mon Jan 12 16:22:05 EST 2015
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
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -2078,6 +2078,8 @@
"reference picture introduced by this frame is lost during transmission! uiTId: %d",
pNalCur->sNalHeaderExt.uiTemporalId);
if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
+ if (pCtx->iTotalNumMbRec == 0)
+ pCtx->pDec = NULL;
return iRet;
}
}
@@ -2093,6 +2095,8 @@
bAllRefComplete = false;
HandleReferenceLostL0 (pCtx, pNalCur);
if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
+ if (pCtx->iTotalNumMbRec == 0)
+ pCtx->pDec = NULL;
return iRet;
}
}