History

add more log when IDR freezed

huili2 committed 9 years ago

Commit 04354061 parent a136ba71 file · +7 −5Browse files

Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+7−5
@@ -227,7 +227,9 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 226 unmodified lines
227227 if (pCtx->bFreezeOutput) {
228228 pDstInfo->iBufferStatus = 0;
229229 if (pPic->bNewSeqBegin) {
230− WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, "DecodeFrameConstruction():New sequence detected, but freezed.");
230+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO,
231+ "DecodeFrameConstruction():New sequence detected, but freezed, correct MBs (%d) out of whole MBs (%d).",
232+ kiTotalNumMbInCurLayer - pCtx->iMbEcedNum, kiTotalNumMbInCurLayer);
231233 }
232234 }
233235 pCtx->iMbEcedNum = pPic->iMbEcedNum;
@@ -730,8 +732,8 @@ void DecodeNalHeaderExt (PNalUnit pNal, uint8_t* pSrc) { · 496 unmodified lines
730732 }
731733
732734
733−void UpdateDecoderStatisticsForActiveParaset(SDecoderStatistics* pDecoderStatistics,
734− PSps pSps, PPps pPps) {
735+void UpdateDecoderStatisticsForActiveParaset (SDecoderStatistics* pDecoderStatistics,
736+ PSps pSps, PPps pPps) {
735737 pDecoderStatistics->iCurrentActiveSpsId = pSps->iSpsId;
736738
737739 pDecoderStatistics->iCurrentActivePpsId = pPps->iPpsId;
@@ -2172,8 +2174,8 @@ void WelsDqLayerDecodeStart (PWelsDecoderContext pCtx, PNalUnit pCurNal, PSps pS · 1434 unmodified lines
21722174
21732175 pCtx->iFrameNum = pSh->iFrameNum;
21742176
2175− UpdateDecoderStatisticsForActiveParaset(&(pCtx->sDecoderStatistics),
2176− pSps, pPps);
2177+ UpdateDecoderStatisticsForActiveParaset (& (pCtx->sDecoderStatistics),
2178+ pSps, pPps);
21772179 }
21782180
21792181 int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, int32_t iPoc) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t