History

assign log output by using WelsLog instead of fprintf

ruil2 committed 8 years ago

Commit 63939c61 parent e1f73c61 file · +2 −2Browse 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+2−2
@@ -2456,7 +2456,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 2455 unmodified lines
24562456 }
24572457 }
24582458 #if defined (_DEBUG) && !defined (CODEC_FOR_TESTBED)
2459− fprintf (stderr, "cur_frame : %d\tiCurrIdD : %d\n ",
2459+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "cur_frame : %d\tiCurrIdD : %d\n ",
24602460 dq_cur->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iFrameNum, iCurrIdD);
24612461 #endif//#if !CODEC_FOR_TESTBED
24622462 iLastIdD = iCurrIdD;
@@ -2485,7 +2485,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 22 unmodified lines
24852485 // A dq layer decoded here
24862486 #if defined (_DEBUG) && !defined (CODEC_FOR_TESTBED)
24872487 #undef fprintf
2488− fprintf (stderr, "POC: #%d, FRAME: #%d, D: %d, Q: %d, T: %d, P: %d, %d\n",
2488+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "POC: #%d, FRAME: #%d, D: %d, Q: %d, T: %d, P: %d, %d\n",
24892489 pSh->iPicOrderCntLsb, pSh->iFrameNum, iCurrIdD, iCurrIdQ, dq_cur->sLayerInfo.sNalHeaderExt.uiTemporalId,
24902490 dq_cur->sLayerInfo.sNalHeaderExt.uiPriorityId, dq_cur->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iSliceQp);
24912491 #endif//#if !CODEC_FOR_TESTBED

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