ref: 16ca41cadac7fb3eae1ee342ecfa0c739d9c1956
parent: 0f1737e035ed1d1923ad1da0c19037aa5f261017
parent: 4394d22b705a121d4331385e6e0e4ed03e854f06
author: sijchen <[email protected]>
date: Mon Feb 2 04:29:50 EST 2015
Merge pull request #1780 from mstorsjo/speedup-tests Set m_iPicResSize in PrepareOneSrcFrame
--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -88,6 +88,10 @@
pSrcPic->iPicWidth = pParamExt->iPicWidth;
pSrcPic->iPicHeight = pParamExt->iPicHeight;
+ m_iWidth = pParamExt->iPicWidth;
+ m_iHeight = pParamExt->iPicHeight;
+ m_iPicResSize = m_iWidth * m_iHeight * 3 >> 1;
+
pYUV[0] = rand() % 256;
for (int i = 1; i < m_iPicResSize; i++) {
if ((i % 256) == 0)