Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2217,8 +2217,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { · 2216 unmodified lines | ||
| 2217 | 2217 | int iResult; |
| 2218 | 2218 | int len = 0; |
| 2219 | 2219 | unsigned char* pData[3] = { NULL }; |
| 2220 | − int iTotalSliceSize = 0; | |
| 2221 | − | |
| 2222 | 2220 | |
| 2223 | 2221 | RandomParamExtCombination(); |
| 2224 | 2222 | iResult = encoder_->SetOption (ENCODER_OPTION_SVC_ENCODE_PARAM_EXT, ¶m_); |
| @@ -2235,11 +2233,11 @@ TEST_F (EncodeDecodeTestAPI, SetOptionEncParamExt) { · 10 unmodified lines | ||
| 2235 | 2233 | pData[0] = pData[1] = pData[2] = 0; |
| 2236 | 2234 | memset (&dstBufInfo_, 0, sizeof (SBufferInfo)); |
| 2237 | 2235 | |
| 2238 | − iResult = decoder_->DecodeFrame2 (info.sLayerInfo[0].pBsBuf, iTotalSliceSize, pData, &dstBufInfo_); | |
| 2236 | + iResult = decoder_->DecodeFrame2 (info.sLayerInfo[0].pBsBuf, len, pData, &dstBufInfo_); | |
| 2239 | 2237 | ASSERT_TRUE (iResult == cmResultSuccess); |
| 2240 | 2238 | iResult = decoder_->DecodeFrame2 (NULL, 0, pData, &dstBufInfo_); |
| 2241 | 2239 | ASSERT_TRUE (iResult == cmResultSuccess); |
| 2242 | − EXPECT_EQ (dstBufInfo_.iBufferStatus, 0); | |
| 2240 | + EXPECT_EQ (dstBufInfo_.iBufferStatus, 1); | |
| 2243 | 2241 | } |
| 2244 | 2242 | } |
| 2245 | 2243 | |