Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 3 files). Show all
Unified · Split
| @@ -3835,9 +3835,10 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa · 3834 unmodified lines | |||
| 3835 | return 0; | 3835 | return 0; |
| 3836 | } | 3836 | } |
| 3837 | 3837 | ||
| 3838 | void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* pLTRValue) { | 3838 | int32_t WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* pLTRValue) { |
| 3839 | SWelsSvcCodingParam sConfig; | 3839 | SWelsSvcCodingParam sConfig; |
| 3840 | int32_t iNumRefFrame = 1; | 3840 | int32_t iNumRefFrame = 1; |
| 3841 | int32_t iRet = 0; | ||
| 3841 | memcpy (&sConfig, (*ppCtx)->pSvcParam, sizeof (SWelsSvcCodingParam)); | 3842 | memcpy (&sConfig, (*ppCtx)->pSvcParam, sizeof (SWelsSvcCodingParam)); |
| 3842 | sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference; | 3843 | sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference; |
| 3843 | sConfig.iLTRRefNum = pLTRValue->iLTRRefNum; | 3844 | sConfig.iLTRRefNum = pLTRValue->iLTRRefNum; |
| @@ -3868,7 +3869,8 @@ void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* · 24 unmodified lines | |||
| 3868 | 3869 | ||
| 3869 | WelsLog (pLogCtx, WELS_LOG_INFO, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d", | 3870 | WelsLog (pLogCtx, WELS_LOG_INFO, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d", |
| 3870 | sConfig.bEnableLongTermReference, sConfig.iLTRRefNum); | 3871 | sConfig.bEnableLongTermReference, sConfig.iLTRRefNum); |
| 3871 | WelsEncoderParamAdjust (ppCtx, &sConfig); | 3872 | iRet = WelsEncoderParamAdjust (ppCtx, &sConfig); |
| 3873 | return iRet; | ||
| 3872 | } | 3874 | } |
| 3873 | int32_t DynSliceRealloc (sWelsEncCtx* pCtx, | 3875 | int32_t DynSliceRealloc (sWelsEncCtx* pCtx, |
| 3874 | SFrameBSInfo* pFrameBsInfo, | 3876 | SFrameBSInfo* pFrameBsInfo, |