ref: 82cd357bae7f0696a37a0db344edbf411a97ef80
parent: 3a75956fb2584cca84a95ba1fcbc72fa2c91f98d
author: huashi <huashi@cisco.com>
date: Fri Mar 6 08:39:47 EST 2015
fixed bug for UT--setoptionParamExt
--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -2217,9 +2217,7 @@
int iResult;
int len = 0;
unsigned char* pData[3] = { NULL };
- int iTotalSliceSize = 0;
-
RandomParamExtCombination();
iResult = encoder_->SetOption (ENCODER_OPTION_SVC_ENCODE_PARAM_EXT, ¶m_);
//ValidateParamExtCombination();
@@ -2235,11 +2233,11 @@
pData[0] = pData[1] = pData[2] = 0;
memset (&dstBufInfo_, 0, sizeof (SBufferInfo));
- iResult = decoder_->DecodeFrame2 (info.sLayerInfo[0].pBsBuf, iTotalSliceSize, pData, &dstBufInfo_);
+ iResult = decoder_->DecodeFrame2 (info.sLayerInfo[0].pBsBuf, len, pData, &dstBufInfo_);
ASSERT_TRUE (iResult == cmResultSuccess);
iResult = decoder_->DecodeFrame2 (NULL, 0, pData, &dstBufInfo_);
ASSERT_TRUE (iResult == cmResultSuccess);
- EXPECT_EQ (dstBufInfo_.iBufferStatus, 0);
+ EXPECT_EQ (dstBufInfo_.iBufferStatus, 1);
}
}