Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 2 files). Show all
Unified · Split
| @@ -3834,7 +3834,7 @@ void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* · 3833 unmodified lines | ||
| 3834 | 3834 | int32_t uiGopSize = 1 << (sConfig.iTemporalLayerNum - 1); |
| 3835 | 3835 | if (sConfig.iUsageType == SCREEN_CONTENT_REAL_TIME) { |
| 3836 | 3836 | if (sConfig.bEnableLongTermReference) { |
| 3837 | − sConfig.iLTRRefNum = WELS_CLIP3 (sConfig.iLTRRefNum, 1, LONG_TERM_REF_NUM_SCREEN); | |
| 3837 | + sConfig.iLTRRefNum = LONG_TERM_REF_NUM_SCREEN;//WELS_CLIP3 (sConfig.iLTRRefNum, 1, LONG_TERM_REF_NUM_SCREEN); | |
| 3838 | 3838 | iNumRefFrame = WELS_MAX (1, WELS_LOG2 (uiGopSize)) + sConfig.iLTRRefNum; |
| 3839 | 3839 | } else { |
| 3840 | 3840 | sConfig.iLTRRefNum = 0; |
| @@ -3842,7 +3842,7 @@ void WelsEncoderApplyLTR (SLogContext* pLogCtx, sWelsEncCtx** ppCtx, SLTRConfig* · 1 unmodified line | ||
| 3842 | 3842 | } |
| 3843 | 3843 | } else { |
| 3844 | 3844 | if (sConfig.bEnableLongTermReference) { |
| 3845 | − sConfig.iLTRRefNum = WELS_CLIP3 (sConfig.iLTRRefNum, 1, LONG_TERM_REF_NUM); | |
| 3845 | + sConfig.iLTRRefNum = LONG_TERM_REF_NUM;//WELS_CLIP3 (sConfig.iLTRRefNum, 1, LONG_TERM_REF_NUM); | |
| 3846 | 3846 | } else { |
| 3847 | 3847 | sConfig.iLTRRefNum = 0; |
| 3848 | 3848 | } |