Showing the changes to test/api/encode_decode_api_test.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1071,7 +1071,7 @@ TEST_P (EncodeDecodeTestAPI, InOutTimeStamp) { · 1070 unmodified lines | ||
| 1071 | 1071 | memset (&dstBufInfo_, 0, sizeof (SBufferInfo)); |
| 1072 | 1072 | dstBufInfo_.uiInBsTimeStamp = uiEncTimeStamp; |
| 1073 | 1073 | rv = decoder_->DecodeFrame2 (NULL, 0, pData, &dstBufInfo_); //reconstruction |
| 1074 | − if(dstBufInfo_.iBufferStatus == 1) { | |
| 1074 | + if (dstBufInfo_.iBufferStatus == 1) { | |
| 1075 | 1075 | EXPECT_EQ (uiEncTimeStamp, dstBufInfo_.uiOutYuvTimeStamp); |
| 1076 | 1076 | } |
| 1077 | 1077 | iIdx++; |
| @@ -2064,11 +2064,14 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { · 986 unmodified lines | ||
| 2064 | 2064 | int iSliceNum = 1; |
| 2065 | 2065 | encoder_->GetDefaultParams (¶m_); |
| 2066 | 2066 | prepareParam (iSpatialLayerNum, iSliceNum, iWidth, iHeight, fFrameRate); |
| 2067 | + | |
| 2067 | 2068 | int rv = encoder_->InitializeExt (¶m_); |
| 2068 | 2069 | ASSERT_TRUE (rv == cmResultSuccess); |
| 2069 | 2070 | |
| 2070 | − int32_t iTraceLevel = WELS_LOG_QUIET; | |
| 2071 | − encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel); | |
| 2071 | + int iTraceLevel = WELS_LOG_QUIET; | |
| 2072 | + rv = encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel); | |
| 2073 | + ASSERT_TRUE (rv == cmResultSuccess); | |
| 2074 | + | |
| 2072 | 2075 | for (int i = 0; i < iEncFrameNum; i++) { |
| 2073 | 2076 | int iResult; |
| 2074 | 2077 | int len = 0; |
| @@ -2304,7 +2307,8 @@ TEST_F (DecodeCrashTestAPI, DecoderCrashTest) { · 229 unmodified lines | ||
| 2304 | 2307 | } while (1); //while (iLoopRound<100); |
| 2305 | 2308 | fclose (f); |
| 2306 | 2309 | #else |
| 2307 | − } while (uiLoopRound < 10); | |
| 2310 | + } | |
| 2311 | + while (uiLoopRound < 10); | |
| 2308 | 2312 | #endif |
| 2309 | 2313 | |
| 2310 | 2314 | } |