Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 2 files). Show all
Unified · Split
| @@ -3756,7 +3756,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3755 unmodified lines | ||
| 3756 | 3756 | pCtx->iEncoderError = ENC_RETURN_SUCCESS; |
| 3757 | 3757 | pCtx->bCurFrameMarkedAsSceneLtr = false; |
| 3758 | 3758 | 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); | |
| 3760 | 3760 | for (int32_t iNalIdx = 0; iNalIdx < MAX_LAYER_NUM_OF_FRAME; iNalIdx++) { |
| 3761 | 3761 | pFbi->sLayerInfo[iNalIdx].eFrameType = videoFrameTypeSkip; |
| 3762 | 3762 | } |