Showing the changes to codec/encoder/core/src (1 of 4 files). Show all
Unified · Split
| @@ -3825,10 +3825,10 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa · 3824 unmodified lines | ||
| 3825 | 3825 | return 0; |
| 3826 | 3826 | } |
| 3827 | 3827 | |
| 3828 | −void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx* pCtx, SLTRConfig* pLTRValue) { | |
| 3828 | +void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* pLTRValue) { | |
| 3829 | 3829 | SWelsSvcCodingParam sConfig; |
| 3830 | 3830 | int32_t iNumRefFrame = 1; |
| 3831 | − memcpy (&sConfig, pCtx->pSvcParam, sizeof (SWelsSvcCodingParam)); | |
| 3831 | + memcpy (&sConfig, (*ppCtx)->pSvcParam, sizeof (SWelsSvcCodingParam)); | |
| 3832 | 3832 | sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference; |
| 3833 | 3833 | sConfig.iLTRRefNum = pLTRValue->iLTRRefNum; |
| 3834 | 3834 | int32_t uiGopSize = 1 << (sConfig.iTemporalLayerNum - 1); |
| @@ -3856,9 +3856,9 @@ void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx* pCtx, SLTRConfig* p · 21 unmodified lines | ||
| 3856 | 3856 | if (sConfig.iNumRefFrame > sConfig.iMaxNumRefFrame) |
| 3857 | 3857 | sConfig.iMaxNumRefFrame = sConfig.iNumRefFrame; |
| 3858 | 3858 | |
| 3859 | − WelsLog (pLogCtx, WELS_LOG_WARNING, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d", | |
| 3859 | + WelsLog (pLogCtx, WELS_LOG_INFO, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d", | |
| 3860 | 3860 | sConfig.bEnableLongTermReference, sConfig.iLTRRefNum); |
| 3861 | − WelsEncoderParamAdjust (&pCtx, &sConfig); | |
| 3861 | + WelsEncoderParamAdjust (ppCtx, &sConfig); | |
| 3862 | 3862 | } |
| 3863 | 3863 | int32_t DynSliceRealloc (sWelsEncCtx* pCtx, |
| 3864 | 3864 | SFrameBSInfo* pFrameBsInfo, |