History

fix warning of video_bitstream_type in UT

huili2 committed 10 years ago

Commit e103ece1 parent 28db1bc1 file · +3 −3Browse files

Showing the changes to test/decoder/DecUT_DecExt.cpp (1 of 1 file). Show all

Unified · Split

test/decoder/DecUT_DecExt.cpp+3−3
@@ -87,7 +87,7 @@ int32_t DecoderInterfaceTest::Init() { · 86 unmodified lines
87 m_sDecParam.uiTargetDqLayer = rand() % 100;87 m_sDecParam.uiTargetDqLayer = rand() % 100;
88 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) (rand() & 7);88 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) (rand() & 7);
89 m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);89 m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);
90 m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 3);90 m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 2);
91 91
92 m_pData[0] = m_pData[1] = m_pData[2] = NULL;92 m_pData[0] = m_pData[1] = m_pData[2] = NULL;
93 m_szBuffer[0] = m_szBuffer[1] = m_szBuffer[2] = 0;93 m_szBuffer[0] = m_szBuffer[1] = m_szBuffer[2] = 0;
@@ -276,7 +276,7 @@ void DecoderInterfaceTest::TestParseOnlyAPI() { · 182 unmodified lines
276 m_sDecParam.bParseOnly = true;276 m_sDecParam.bParseOnly = true;
277 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) iNum;277 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) iNum;
278 m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);278 m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);
279 m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 3);279 m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 2);
280 280
281 iRet = m_pDec->Initialize (&m_sDecParam);281 iRet = m_pDec->Initialize (&m_sDecParam);
282 ASSERT_EQ (iRet, (int32_t) cmResultSuccess);282 ASSERT_EQ (iRet, (int32_t) cmResultSuccess);
@@ -309,7 +309,7 @@ void DecoderInterfaceTest::TestParseOnlyAPI() { · 26 unmodified lines
309 m_sDecParam.bParseOnly = false;309 m_sDecParam.bParseOnly = false;
310 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) iNum;310 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) iNum;
311 m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);311 m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);
312 m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 3);312 m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 2);
313 313
314 iRet = m_pDec->Initialize (&m_sDecParam);314 iRet = m_pDec->Initialize (&m_sDecParam);
315 ASSERT_EQ (iRet, (int32_t) cmResultSuccess);315 ASSERT_EQ (iRet, (int32_t) cmResultSuccess);

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