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 | 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 | 3839 | SWelsSvcCodingParam sConfig; |
| 3840 | 3840 | int32_t iNumRefFrame = 1; |
| 3841 | + int32_t iRet = 0; | |
| 3841 | 3842 | memcpy (&sConfig, (*ppCtx)->pSvcParam, sizeof (SWelsSvcCodingParam)); |
| 3842 | 3843 | sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference; |
| 3843 | 3844 | sConfig.iLTRRefNum = pLTRValue->iLTRRefNum; |
| @@ -3868,7 +3869,8 @@ void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* · 24 unmodified lines | ||
| 3868 | 3869 | |
| 3869 | 3870 | WelsLog (pLogCtx, WELS_LOG_INFO, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d", |
| 3870 | 3871 | sConfig.bEnableLongTermReference, sConfig.iLTRRefNum); |
| 3871 | − WelsEncoderParamAdjust (ppCtx, &sConfig); | |
| 3872 | + iRet = WelsEncoderParamAdjust (ppCtx, &sConfig); | |
| 3873 | + return iRet; | |
| 3872 | 3874 | } |
| 3873 | 3875 | int32_t DynSliceRealloc (sWelsEncCtx* pCtx, |
| 3874 | 3876 | SFrameBSInfo* pFrameBsInfo, |