shithub: openh264

Download patch

ref: 043540684c6a7e4f1efea599794d1446b5a7f2ad
parent: a136ba743425080f896ae125263c6b7c3759be6c
author: huili2 <huili2@cisco.com>
date: Mon Mar 13 04:57:46 EDT 2017

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) {