shithub: openh264

Download patch

ref: 17d47533eda62d3a22562d2127f7e6f1f2e5daa7
parent: 492627977e800388a54e6f84be3a0da1becdebf4
author: ruil2 <[email protected]>
date: Thu Jun 12 11:20:10 EDT 2014

fix #948 issue -- Using unititialized value in unittest.

--- a/codec/encoder/core/src/svc_enc_slice_segment.cpp
+++ b/codec/encoder/core/src/svc_enc_slice_segment.cpp
@@ -407,6 +407,7 @@
 
     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);