Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 14 files). Show all
Unified · Split
| @@ -481,7 +481,7 @@ void GetValidEncParamBase (SEncParamBase* pEncParamBase) { · 480 unmodified lines | ||
| 481 | 481 | // Force a bitrate of at least w*h/50, otherwise we will only get skipped frames |
| 482 | 482 | pEncParamBase->iTargetBitrate = WELS_CLIP3 (pEncParamBase->iTargetBitrate, |
| 483 | 483 | pEncParamBase->iPicWidth * pEncParamBase->iPicHeight / 50, 100000000); |
| 484 | − int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_5_0 - 1].uiMaxBR * CpbBrNalFactor; | |
| 484 | + int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_NUMBER - 1].uiMaxBR * CpbBrNalFactor; | |
| 485 | 485 | if (pEncParamBase->iTargetBitrate > iLevelMaxBitrate) |
| 486 | 486 | pEncParamBase->iTargetBitrate = iLevelMaxBitrate; |
| 487 | 487 | pEncParamBase->iRCMode = RC_BITRATE_MODE; //-1, 0, 1, 2 |
| @@ -734,7 +734,7 @@ TEST_F (EncoderInterfaceTest, ForceIntraFrameWithTemporal) { · 246 unmodified lines | ||
| 734 | 734 | // Force a bitrate of at least w*h/50, otherwise we will only get skipped frames |
| 735 | 735 | sEncParamExt.iTargetBitrate = WELS_CLIP3 (sEncParamExt.iTargetBitrate, |
| 736 | 736 | sEncParamExt.iPicWidth * sEncParamExt.iPicHeight / 50, 100000000); |
| 737 | − int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_5_0 - 1].uiMaxBR * CpbBrNalFactor; | |
| 737 | + int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_NUMBER - 1].uiMaxBR * CpbBrNalFactor; | |
| 738 | 738 | if (sEncParamExt.iTargetBitrate > iLevelMaxBitrate) |
| 739 | 739 | sEncParamExt.iTargetBitrate = iLevelMaxBitrate; |
| 740 | 740 | sEncParamExt.iRCMode = RC_BITRATE_MODE; //-1, 0, 1, 2 |