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
3038 if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate)3038 if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate)
3039 ++ pCtx->iCodingIndex;3039 ++ pCtx->iCodingIndex;
3040 pFbi->eFrameType = videoFrameTypeSkip;3040 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);
3042 return ENC_RETURN_SUCCESS;3042 return ENC_RETURN_SUCCESS;
3043 }3043 }
3044 3044
3045 eFrameType = DecideFrameType (pCtx, iSpatialNum);3045 eFrameType = DecideFrameType (pCtx, iSpatialNum);
3046 if (eFrameType == videoFrameTypeSkip) {3046 if (eFrameType == videoFrameTypeSkip) {
3047 pFbi->eFrameType = eFrameType;3047 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);
3049 return ENC_RETURN_SUCCESS;3049 return ENC_RETURN_SUCCESS;
3050 }3050 }
3051 3051
3052 //loop each layer to check if have skip frame when RC and frame skip enable3052 //loop each layer to check if have skip frame when RC and frame skip enable
3053 if (CheckFrameSkipBasedMaxbr (pCtx, iSpatialNum, eFrameType, (uint32_t)pSrcPic->uiTimeStamp)) {3053 if (CheckFrameSkipBasedMaxbr (pCtx, iSpatialNum, eFrameType, (uint32_t)pSrcPic->uiTimeStamp)) {
3054 pFbi->eFrameType = videoFrameTypeSkip;3054 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);
3056 return ENC_RETURN_SUCCESS;3056 return ENC_RETURN_SUCCESS;
3057 }3057 }
3058 3058

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