Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -316,8 +316,8 @@ TEST_F (EncoderInterfaceTest, MemoryCheckTest) { · 315 unmodified lines | ||
| 316 | 316 | |
| 317 | 317 | void GetValidEncParamBase (SEncParamBase* pEncParamBase) { |
| 318 | 318 | pEncParamBase->iUsageType = CAMERA_VIDEO_REAL_TIME; |
| 319 | − pEncParamBase->iPicWidth = 2 + ((rand() * 2) % (MAX_WIDTH - 2)); | |
| 320 | − pEncParamBase->iPicHeight = 2 + ((rand() * 2) % (MAX_HEIGHT - 2)); | |
| 319 | + pEncParamBase->iPicWidth = 2 + ((rand() % ((MAX_WIDTH >> 1) - 1)) << 1); | |
| 320 | + pEncParamBase->iPicHeight = 2 + ((rand() % ((MAX_HEIGHT >> 1) - 1)) << 1); | |
| 321 | 321 | pEncParamBase->iPicWidth = VALID_SIZE(pEncParamBase->iPicWidth); |
| 322 | 322 | pEncParamBase->iPicHeight = VALID_SIZE(pEncParamBase->iPicHeight); |
| 323 | 323 | pEncParamBase->iTargetBitrate = rand() + 1; //!=0 |