Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 7 files). Show all
Unified · Split
| @@ -480,7 +480,7 @@ void GetValidEncParamBase (SEncParamBase* pEncParamBase) { · 479 unmodified lines | ||
| 480 | 480 | pEncParamBase->iTargetBitrate = rand() + 1; //!=0 |
| 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 | − pEncParamBase->iPicWidth * pEncParamBase->iPicHeight / 50, 100000000); | |
| 483 | + pEncParamBase->iPicWidth * pEncParamBase->iPicHeight / 50, 60000000); | |
| 484 | 484 | int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_NUMBER - 1].uiMaxBR * CpbBrNalFactor; |
| 485 | 485 | if (pEncParamBase->iTargetBitrate > iLevelMaxBitrate) |
| 486 | 486 | pEncParamBase->iTargetBitrate = iLevelMaxBitrate; |
| @@ -733,7 +733,7 @@ TEST_F (EncoderInterfaceTest, ForceIntraFrameWithTemporal) { · 246 unmodified lines | ||
| 733 | 733 | sEncParamExt.iTargetBitrate = rand() + 1; //!=0 |
| 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 | − sEncParamExt.iPicWidth * sEncParamExt.iPicHeight / 50, 100000000); | |
| 736 | + sEncParamExt.iPicWidth * sEncParamExt.iPicHeight / 50, 60000000); | |
| 737 | 737 | int32_t iLevelMaxBitrate = WelsCommon::g_ksLevelLimits[LEVEL_NUMBER - 1].uiMaxBR * CpbBrNalFactor; |
| 738 | 738 | if (sEncParamExt.iTargetBitrate > iLevelMaxBitrate) |
| 739 | 739 | sEncParamExt.iTargetBitrate = iLevelMaxBitrate; |