ref: db31c22789f6b5c7502124af2fa5e3432b80c397
parent: 664127f39f17c9e935d19a221fdeb6da8053bd72
parent: c23b1406368e71437c05f62bd87dc149325d7e4a
author: huili2 <huili2@cisco.com>
date: Tue May 9 11:24:23 EDT 2017
Merge pull request #2744 from shihuade/NewDesign_MemCheck bug fixes:reallocate UT pointer null memory issue
--- a/test/encoder/EncUT_SliceBufferReallocate.cpp
+++ b/test/encoder/EncUT_SliceBufferReallocate.cpp
@@ -164,8 +164,8 @@
void CSliceBufferReallocatTest::InitParamForTestCase (int32_t iLayerIdx) {
InitParam();
- InitLayerSliceBuffer (iLayerIdx);
InitFrameBsBuffer();
+ InitLayerSliceBuffer (iLayerIdx);
//param validation
int32_t iRet = m_pEncoder->InitializeExt ((SEncParamExt*)m_EncContext.pSvcParam);
@@ -177,6 +177,7 @@
int32_t iRet = 0;
InitParam();
+ InitFrameBsBuffer();
InitLayerSliceBuffer (iLayerIdx);
if (SM_SIZELIMITED_SLICE != pSliceArgument->uiSliceMode && NULL != m_EncContext.ppDqLayerList[iLayerIdx]) {
@@ -186,7 +187,6 @@
EXPECT_TRUE (ENC_RETURN_SUCCESS == iRet);
EXPECT_TRUE (NULL != m_EncContext.ppDqLayerList[iLayerIdx]);
}
- InitFrameBsBuffer();
//param validation
iRet = m_pEncoder->InitializeExt ((SEncParamExt*)m_EncContext.pSvcParam);