ref: b603844126cdc285b169f60d62fa4fb00889a623
parent: 0250acc665847e3fb63fe34d747c5cd5ec53fe6c
parent: 264cf5761697e76c52b22caa3b97c8cc9e4ce8ea
author: dongzha <dongzha@cisco.com>
date: Thu Jan 15 09:08:26 EST 2015
Merge pull request #1730 from HaiboZhu/Debug_EC_off_Delay_mode_early_exit_process Fix the bug that the pDec not set to NULL when early exit
--- 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;
}
}