History

finish the remaining prob of fixing ts=0

sijchen committed 10 years ago

Commit 881fc111 parent 9816e332 files · +2 −2Browse 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+1−1
@@ -3756,7 +3756,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3755 unmodified lines
37563756 pCtx->iEncoderError = ENC_RETURN_SUCCESS;
37573757 pCtx->bCurFrameMarkedAsSceneLtr = false;
37583758 pFbi->iLayerNum = 0; // for initialization
3759− pFbi->uiTimeStamp = GetTimestampForRc(pSrcPic->uiTimeStamp, pCtx->uiLastTimestamp, pCtx->pSvcParam->sSpatialLayers->fFrameRate);
3759+ pFbi->uiTimeStamp = GetTimestampForRc(pSrcPic->uiTimeStamp, pCtx->uiLastTimestamp, pCtx->pSvcParam->sSpatialLayers[pCtx->pSvcParam->iSpatialLayerNum-1].fFrameRate);
37603760 for (int32_t iNalIdx = 0; iNalIdx < MAX_LAYER_NUM_OF_FRAME; iNalIdx++) {
37613761 pFbi->sLayerInfo[iNalIdx].eFrameType = videoFrameTypeSkip;
37623762 }

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