Merge pull request #965 from ruil2/uinit_fix

fix #948 issue -- Using unititialized value in unittest.
This commit is contained in:
sijchen 2014-06-12 16:46:40 +08:00
commit 0c09847ec9

View File

@ -407,6 +407,7 @@ int32_t InitSliceSegment (SSliceCtx* pSliceSeg,
WELS_VERIFY_RETURN_IF (1, NULL == pSliceSeg->pOverallMbMap)
memset (pSliceSeg->pOverallMbMap, 0, kiCountMbNum * sizeof (uint8_t));
//SM_DYN_SLICE: init, set pSliceSeg->iSliceNumInFrame = 1;
pSliceSeg->iSliceNumInFrame = GetInitialSliceNum (kiMbWidth, kiMbHeight, pMso);