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
516TEST_P (EncodeDecodeTestAPI, GetOptionLTR_Engine) {516TEST_P (EncodeDecodeTestAPI, GetOptionLTR_Engine) {
517 SLTRMarkingFeedback m_LTR_Marking_Feedback;517 SLTRMarkingFeedback m_LTR_Marking_Feedback;
518 SLTRRecoverRequest m_LTR_Recover_Request;518 SLTRRecoverRequest m_LTR_Recover_Request;
519 m_LTR_Recover_Request.uiIDRPicId = 0;
519 EncodeDecodeFileParamBase p = GetParam();520 EncodeDecodeFileParamBase p = GetParam();
520 prepareParam (p.width, p.height, p.frameRate);521 prepareParam (p.width, p.height, p.frameRate);
521 param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;522 param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;
@@ -582,6 +583,7 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_Engine) { · 60 unmodified lines
582TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) {583TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) {
583 SLTRMarkingFeedback m_LTR_Marking_Feedback;584 SLTRMarkingFeedback m_LTR_Marking_Feedback;
584 SLTRRecoverRequest m_LTR_Recover_Request;585 SLTRRecoverRequest m_LTR_Recover_Request;
586 m_LTR_Recover_Request.uiIDRPicId = 0;
585 EncodeDecodeFileParamBase p = GetParam();587 EncodeDecodeFileParamBase p = GetParam();
586 prepareParam (p.width, p.height, p.frameRate);588 prepareParam (p.width, p.height, p.frameRate);
587 param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;589 param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;
@@ -666,6 +668,7 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) { · 78 unmodified lines
666TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) {668TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) {
667 SLTRMarkingFeedback m_LTR_Marking_Feedback;669 SLTRMarkingFeedback m_LTR_Marking_Feedback;
668 SLTRRecoverRequest m_LTR_Recover_Request;670 SLTRRecoverRequest m_LTR_Recover_Request;
671 m_LTR_Recover_Request.uiIDRPicId = 0;
669 EncodeDecodeFileParamBase p = GetParam();672 EncodeDecodeFileParamBase p = GetParam();
670 prepareParam (p.width, p.height, p.frameRate);673 prepareParam (p.width, p.height, p.frameRate);
671 param_.sSpatialLayers[0].sSliceCfg.uiSliceMode = SM_FIXEDSLCNUM_SLICE;674 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