Merge pull request #1533 from mstorsjo/speedup-tests
Speed up some slow tests in the unit test suite
This commit is contained in:
commit
cbb6e993cf
@ -2233,8 +2233,7 @@ TEST_F (DecodeCrashTestAPI, DecoderCrashTest) {
|
||||
} while (1); //while (iLoopRound<100);
|
||||
fclose (f);
|
||||
#else
|
||||
}
|
||||
while (uiLoopRound < 100);
|
||||
} while (uiLoopRound < 10);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ void EncoderInterfaceTest::PrepareOneSrcFrame() {
|
||||
if ((i % 256) == 0)
|
||||
pYUV[i] = rand() % 256;
|
||||
else
|
||||
pYUV[i] = WELS_CLIP3 (pYUV[i - 1] + (rand() % 3) - 1, 0, 255);
|
||||
pYUV[i] = (pYUV[i - 1] + (rand() % 3) - 1) & 0xff;
|
||||
}
|
||||
pSrcPic->iStride[0] = m_iWidth;
|
||||
pSrcPic->iStride[1] = pSrcPic->iStride[2] = pSrcPic->iStride[0] >> 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user