History

Make sure uiIDRPicId is initialized within EncodeDecodeTest

This fixes valgrind warnings about comparison with uninitialized values.

Martin Storsjö committed 12 years ago

Commit a6cc7121 parent f8d5f931 file · +3 −0Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+3−0
@@ -516,6 +516,7 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_ALLLTR) { · 515 unmodified lines
516516 TEST_P (EncodeDecodeTestAPI, GetOptionLTR_Engine) {
517517 SLTRMarkingFeedback m_LTR_Marking_Feedback;
518518 SLTRRecoverRequest m_LTR_Recover_Request;
519+ m_LTR_Recover_Request.uiIDRPicId = 0;
519520 EncodeDecodeFileParamBase p = GetParam();
520521 prepareParam (p.width, p.height, p.frameRate);
521522 param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;
@@ -582,6 +583,7 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_Engine) { · 60 unmodified lines
582583 TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) {
583584 SLTRMarkingFeedback m_LTR_Marking_Feedback;
584585 SLTRRecoverRequest m_LTR_Recover_Request;
586+ m_LTR_Recover_Request.uiIDRPicId = 0;
585587 EncodeDecodeFileParamBase p = GetParam();
586588 prepareParam (p.width, p.height, p.frameRate);
587589 param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;
@@ -666,6 +668,7 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) { · 78 unmodified lines
666668 TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) {
667669 SLTRMarkingFeedback m_LTR_Marking_Feedback;
668670 SLTRRecoverRequest m_LTR_Recover_Request;
671+ m_LTR_Recover_Request.uiIDRPicId = 0;
669672 EncodeDecodeFileParamBase p = GetParam();
670673 prepareParam (p.width, p.height, p.frameRate);
671674 param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t