History

use %lld instead of %8d for longlong type

ruil2 committed 12 years ago

Commit 18ed25f1 parent 783daf32 files · +9 −9Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+7−7
@@ -2089,7 +2089,7 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 2088 unmodified lines
20892089 if (pCodingParam->iMultipleThreadIdc > 1)
20902090 iRet = CreateSliceThreads (pCtx);
20912091
2092− if(pCodingParam->iEntropyCodingModeFlag)
2092+ if (pCodingParam->iEntropyCodingModeFlag)
20932093 WelsCabacInit (pCtx);
20942094 WelsRcInitModule (pCtx, pCtx->pSvcParam->iRCMode);
20952095
@@ -3059,24 +3059,24 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 963 unmodified lines
30593059 if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate)
30603060 ++ pCtx->iCodingIndex;
30613061 pFbi->eFrameType = videoFrameTypeSkip;
3062− WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "[Rc] Frame timestamp = %8" PRId64", skip one frame",
3063− (int64_t)pSrcPic->uiTimeStamp);
3062+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "[Rc] Frame timestamp = %lld",
3063+ pSrcPic->uiTimeStamp);
30643064 return ENC_RETURN_SUCCESS;
30653065 }
30663066
30673067 eFrameType = DecideFrameType (pCtx, iSpatialNum);
30683068 if (eFrameType == videoFrameTypeSkip) {
30693069 pFbi->eFrameType = eFrameType;
3070− WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "[Rc] Frame timestamp = %8" PRId64", skip one frame",
3071− (int64_t)pSrcPic->uiTimeStamp);
3070+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "[Rc] Frame timestamp = %lld",
3071+ pSrcPic->uiTimeStamp);
30723072 return ENC_RETURN_SUCCESS;
30733073 }
30743074
30753075 //loop each layer to check if have skip frame when RC and frame skip enable
30763076 if (CheckFrameSkipBasedMaxbr (pCtx, iSpatialNum, eFrameType, (uint32_t)pSrcPic->uiTimeStamp)) {
30773077 pFbi->eFrameType = videoFrameTypeSkip;
3078− WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "[Rc] Frame timestamp = %8" PRId64", skip one frame",
3079− (int64_t)pSrcPic->uiTimeStamp);
3078+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "[Rc] Frame timestamp = %lld",
3079+ pSrcPic->uiTimeStamp);
30803080 return ENC_RETURN_SUCCESS;
30813081 }
30823082

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