Showing the changes to test/api/encode_decode_api_test.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1039,7 +1039,7 @@ TEST_P (EncodeDecodeTestAPI, InOutTimeStamp) { · 1038 unmodified lines | ||
| 1039 | 1039 | encoder_->Uninitialize(); |
| 1040 | 1040 | int rv = encoder_->InitializeExt (¶m_); |
| 1041 | 1041 | ASSERT_TRUE (rv == cmResultSuccess); |
| 1042 | − | |
| 1042 | + | |
| 1043 | 1043 | InitialEncDec (p.width, p.height); |
| 1044 | 1044 | int32_t iTraceLevel = WELS_LOG_QUIET; |
| 1045 | 1045 | encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel); |
| @@ -1608,7 +1608,7 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificFrameChange) { · 562 unmodified lines | ||
| 1608 | 1608 | //loss (2 slice: 1,2): 2 0 0 1 0 |
| 1609 | 1609 | |
| 1610 | 1610 | TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRLoss) { |
| 1611 | − uint32_t uiEcIdc; | |
| 1611 | + uint32_t uiEcIdc = 2; //default set as SLICE_COPY | |
| 1612 | 1612 | uint32_t uiGet; |
| 1613 | 1613 | EncodeDecodeFileParamBase p = kFileParamArray[0]; |
| 1614 | 1614 | prepareParam (1, 2, p.width, p.height, p.frameRate); |
| @@ -1616,6 +1616,7 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRLoss) { · 1 unmodified line | ||
| 1616 | 1616 | encoder_->Uninitialize(); |
| 1617 | 1617 | int rv = encoder_->InitializeExt (¶m_); |
| 1618 | 1618 | ASSERT_TRUE (rv == cmResultSuccess); |
| 1619 | + decoder_->SetOption (DECODER_OPTION_ERROR_CON_IDC, &uiEcIdc); | |
| 1619 | 1620 | decoder_->GetOption (DECODER_OPTION_ERROR_CON_IDC, &uiGet); |
| 1620 | 1621 | EXPECT_EQ (uiGet, (uint32_t) ERROR_CON_SLICE_COPY); //default value should be ERROR_CON_SLICE_COPY |
| 1621 | 1622 | int32_t iTraceLevel = WELS_LOG_QUIET; |