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
8787 m_sDecParam.uiTargetDqLayer = rand() % 100;
8888 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) (rand() & 7);
8989 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);
9191
9292 m_pData[0] = m_pData[1] = m_pData[2] = NULL;
9393 m_szBuffer[0] = m_szBuffer[1] = m_szBuffer[2] = 0;
@@ -276,7 +276,7 @@ void DecoderInterfaceTest::TestParseOnlyAPI() { · 182 unmodified lines
276276 m_sDecParam.bParseOnly = true;
277277 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) iNum;
278278 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);
280280
281281 iRet = m_pDec->Initialize (&m_sDecParam);
282282 ASSERT_EQ (iRet, (int32_t) cmResultSuccess);
@@ -309,7 +309,7 @@ void DecoderInterfaceTest::TestParseOnlyAPI() { · 26 unmodified lines
309309 m_sDecParam.bParseOnly = false;
310310 m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) iNum;
311311 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);
313313
314314 iRet = m_pDec->Initialize (&m_sDecParam);
315315 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