shithub: openh264

Download patch

ref: 4e54fd191bcf5ec4691684888469b3cff0c81fb7
parent: 19dcff86167880ec2f32d980ad58cf47664e71f6
parent: a6cc71208e95ed39aa6283f8d16ac6e2f69c9133
author: Ethan Hugg <[email protected]>
date: Tue Sep 16 04:39:22 EDT 2014

Merge pull request #1361 from mstorsjo/avoid-comparing-uninitialized

Make sure uiIDRPicId is initialized within EncodeDecodeTest

--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -516,6 +516,7 @@
 TEST_P (EncodeDecodeTestAPI, GetOptionLTR_Engine) {
   SLTRMarkingFeedback m_LTR_Marking_Feedback;
   SLTRRecoverRequest m_LTR_Recover_Request;
+  m_LTR_Recover_Request.uiIDRPicId = 0;
   EncodeDecodeFileParamBase p = GetParam();
   prepareParam (p.width, p.height, p.frameRate);
   param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;
@@ -582,6 +583,7 @@
 TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) {
   SLTRMarkingFeedback m_LTR_Marking_Feedback;
   SLTRRecoverRequest m_LTR_Recover_Request;
+  m_LTR_Recover_Request.uiIDRPicId = 0;
   EncodeDecodeFileParamBase p = GetParam();
   prepareParam (p.width, p.height, p.frameRate);
   param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;
@@ -666,6 +668,7 @@
 TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) {
   SLTRMarkingFeedback m_LTR_Marking_Feedback;
   SLTRRecoverRequest m_LTR_Recover_Request;
+  m_LTR_Recover_Request.uiIDRPicId = 0;
   EncodeDecodeFileParamBase p = GetParam();
   prepareParam (p.width, p.height, p.frameRate);
   param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;