ref: 2081df8b25fe8fd781406f1fbf787305f0db7b41
parent: a136ba743425080f896ae125263c6b7c3759be6c
parent: 043540684c6a7e4f1efea599794d1446b5a7f2ad
author: huili2 <huili2@cisco.com>
date: Wed Mar 15 04:58:36 EDT 2017
Merge pull request #2684 from huili2/dec_log_enhance_IDRerror add more log when IDR freezed
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -227,7 +227,9 @@
if (pCtx->bFreezeOutput) {
pDstInfo->iBufferStatus = 0;
if (pPic->bNewSeqBegin) {
- WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, "DecodeFrameConstruction():New sequence detected, but freezed.");
+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO,
+ "DecodeFrameConstruction():New sequence detected, but freezed, correct MBs (%d) out of whole MBs (%d).",
+ kiTotalNumMbInCurLayer - pCtx->iMbEcedNum, kiTotalNumMbInCurLayer);
}
}
pCtx->iMbEcedNum = pPic->iMbEcedNum;
@@ -730,8 +732,8 @@
}
-void UpdateDecoderStatisticsForActiveParaset(SDecoderStatistics* pDecoderStatistics,
- PSps pSps, PPps pPps) {
+void UpdateDecoderStatisticsForActiveParaset (SDecoderStatistics* pDecoderStatistics,
+ PSps pSps, PPps pPps) {
pDecoderStatistics->iCurrentActiveSpsId = pSps->iSpsId;
pDecoderStatistics->iCurrentActivePpsId = pPps->iPpsId;
@@ -2172,8 +2174,8 @@
pCtx->iFrameNum = pSh->iFrameNum;
- UpdateDecoderStatisticsForActiveParaset(&(pCtx->sDecoderStatistics),
- pSps, pPps);
+ UpdateDecoderStatisticsForActiveParaset (& (pCtx->sDecoderStatistics),
+ pSps, pPps);
}
int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, int32_t iPoc) {