History

Use the right log format for printing 64 bit integers

Martin Storsjö committed 12 years ago

Commit 311272d1 parent a3a0eff1 file · +3 −3Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+3−3
@@ -3038,21 +3038,21 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3037 unmodified lines
30383038 if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate)
30393039 ++ pCtx->iCodingIndex;
30403040 pFbi->eFrameType = videoFrameTypeSkip;
3041− WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8d, skip one frame",pSrcPic->uiTimeStamp);
3041+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8"PRId64", skip one frame", (int64_t)pSrcPic->uiTimeStamp);
30423042 return ENC_RETURN_SUCCESS;
30433043 }
30443044
30453045 eFrameType = DecideFrameType (pCtx, iSpatialNum);
30463046 if (eFrameType == videoFrameTypeSkip) {
30473047 pFbi->eFrameType = eFrameType;
3048− WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8d, skip one frame",pSrcPic->uiTimeStamp);
3048+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8"PRId64", skip one frame", (int64_t)pSrcPic->uiTimeStamp);
30493049 return ENC_RETURN_SUCCESS;
30503050 }
30513051
30523052 //loop each layer to check if have skip frame when RC and frame skip enable
30533053 if (CheckFrameSkipBasedMaxbr (pCtx, iSpatialNum, eFrameType, (uint32_t)pSrcPic->uiTimeStamp)) {
30543054 pFbi->eFrameType = videoFrameTypeSkip;
3055− WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8d, skip one frame",pSrcPic->uiTimeStamp);
3055+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8"PRId64", skip one frame", (int64_t)pSrcPic->uiTimeStamp);
30563056 return ENC_RETURN_SUCCESS;
30573057 }
30583058

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