Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all
Unified · Split
| @@ -350,7 +350,7 @@ int CWelsH264SVCEncoder::InitializeInternal(SWelsSvcCodingParam* pCfg) { · 349 unmodified lines | ||
| 350 | 350 | pCfg->iNumRefFrame = WELS_MAX(1,WELS_LOG2 (pCfg->uiGopSize)) + pCfg->iLTRRefNum; |
| 351 | 351 | } else { |
| 352 | 352 | pCfg->iLTRRefNum = 0; |
| 353 | − pCfg->iNumRefFrame = 1; | |
| 353 | + pCfg->iNumRefFrame = WELS_MAX(1, pCfg->uiGopSize>>1); | |
| 354 | 354 | } |
| 355 | 355 | } else { |
| 356 | 356 | pCfg->iLTRRefNum = pCfg->bEnableLongTermReference ? WELS_CLIP3(pCfg->iLTRRefNum,1,LONG_TERM_REF_NUM) : 0; |