History

modify freeze output to proper location

huili2 committed 11 years ago

Commit 984497c1 parent 93265d73 files · +8 −8Browse files

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

Unified · Split

test/api/encode_decode_api_test.cpp+3−2
@@ -1039,7 +1039,7 @@ TEST_P (EncodeDecodeTestAPI, InOutTimeStamp) { · 1038 unmodified lines
10391039 encoder_->Uninitialize();
10401040 int rv = encoder_->InitializeExt (&param_);
10411041 ASSERT_TRUE (rv == cmResultSuccess);
1042−
1042+
10431043 InitialEncDec (p.width, p.height);
10441044 int32_t iTraceLevel = WELS_LOG_QUIET;
10451045 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -1608,7 +1608,7 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificFrameChange) { · 562 unmodified lines
16081608 //loss (2 slice: 1,2): 2 0 0 1 0
16091609
16101610 TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRLoss) {
1611− uint32_t uiEcIdc;
1611+ uint32_t uiEcIdc = 2; //default set as SLICE_COPY
16121612 uint32_t uiGet;
16131613 EncodeDecodeFileParamBase p = kFileParamArray[0];
16141614 prepareParam (1, 2, p.width, p.height, p.frameRate);
@@ -1616,6 +1616,7 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRLoss) { · 1 unmodified line
16161616 encoder_->Uninitialize();
16171617 int rv = encoder_->InitializeExt (&param_);
16181618 ASSERT_TRUE (rv == cmResultSuccess);
1619+ decoder_->SetOption (DECODER_OPTION_ERROR_CON_IDC, &uiEcIdc);
16191620 decoder_->GetOption (DECODER_OPTION_ERROR_CON_IDC, &uiGet);
16201621 EXPECT_EQ (uiGet, (uint32_t) ERROR_CON_SLICE_COPY); //default value should be ERROR_CON_SLICE_COPY
16211622 int32_t iTraceLevel = WELS_LOG_QUIET;

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