History

fix skip frames statistics issue

Karina committed 10 years ago

Commit 10dfb261 parent 22bec092 files · +2 −2Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+1−1
@@ -3797,6 +3797,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3796 unmodified lines
37973797 #endif//_DEBUG
37983798 pCtx->iEncoderError = ENC_RETURN_SUCCESS;
37993799 pCtx->bCurFrameMarkedAsSceneLtr = false;
3800+ pFbi->eFrameType = videoFrameTypeSkip;
38003801 pFbi->iLayerNum = 0; // for initialization
38013802 pFbi->uiTimeStamp = GetTimestampForRc (pSrcPic->uiTimeStamp, pCtx->uiLastTimestamp, pCtx->pSvcParam->sSpatialLayers[pCtx->pSvcParam->iSpatialLayerNum - 1].fFrameRate);
38023803 for (int32_t iNalIdx = 0; iNalIdx < MAX_LAYER_NUM_OF_FRAME; iNalIdx++) {
@@ -3811,7 +3812,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 8 unmodified lines
38113812 if (iSpatialNum < 1) {
38123813 // ++ pCtx->iCodingIndex;
38133814 pLayerBsInfo->eFrameType = videoFrameTypeSkip;
3814− pFbi->eFrameType = videoFrameTypeSkip;
38153815 WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,
38163816 "[Rc] Frame timestamp = %lld, skip one frame due to preprocessing return (temporal layer settings or else), continual skipped %d frames",
38173817 pSrcPic->uiTimeStamp, pCtx->iContinualSkipFrames);

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