Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 3 files). Show all
Unified · Split
| @@ -825,13 +825,7 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 824 unmodified lines | ||
| 825 | 825 | break; |
| 826 | 826 | case ENCODER_OPTION_LTR: { |
| 827 | 827 | SLTRConfig* pLTRValue = ((SLTRConfig*) (pOption)); |
| 828 | − SWelsSvcCodingParam sConfig; | |
| 829 | − memcpy (&sConfig, m_pEncContext->pSvcParam, sizeof (SWelsSvcCodingParam)); | |
| 830 | − sConfig.bEnableLongTermReference = pLTRValue->bEnableLongTermReference; | |
| 831 | − sConfig.iLTRRefNum = pLTRValue->iLTRRefNum; | |
| 832 | − WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING, " CWelsH264SVCEncoder::SetOption enable LTR = %d,ltrnum = %d", | |
| 833 | − sConfig.bEnableLongTermReference, sConfig.iLTRRefNum); | |
| 834 | − WelsEncoderParamAdjust (&m_pEncContext, &sConfig); | |
| 828 | + WelsEncoderApplyLTR (&m_pWelsTrace->m_sLogCtx, m_pEncContext, pLTRValue); | |
| 835 | 829 | } |
| 836 | 830 | break; |
| 837 | 831 | case ENCODER_OPTION_ENABLE_SSEI: { |