shithub: openh264

Download patch

ref: e103ecea7fec1f3b47b1568c8976382df43b0b32
parent: 28db1bce906577c6e70d4b801a96882a33452462
author: huili2 <huili2@cisco.com>
date: Wed Oct 12 21:13:55 EDT 2016

fix warning of video_bitstream_type in UT

--- a/test/decoder/DecUT_DecExt.cpp
+++ b/test/decoder/DecUT_DecExt.cpp
@@ -87,7 +87,7 @@
   m_sDecParam.uiTargetDqLayer = rand() % 100;
   m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) (rand() & 7);
   m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);
-  m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 3);
+  m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 2);
 
   m_pData[0] = m_pData[1] = m_pData[2] = NULL;
   m_szBuffer[0] = m_szBuffer[1] = m_szBuffer[2] = 0;
@@ -276,7 +276,7 @@
     m_sDecParam.bParseOnly = true;
     m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) iNum;
     m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);
-    m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 3);
+    m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 2);
 
     iRet = m_pDec->Initialize (&m_sDecParam);
     ASSERT_EQ (iRet, (int32_t) cmResultSuccess);
@@ -309,7 +309,7 @@
     m_sDecParam.bParseOnly = false;
     m_sDecParam.eEcActiveIdc = (ERROR_CON_IDC) iNum;
     m_sDecParam.sVideoProperty.size = sizeof (SVideoProperty);
-    m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 3);
+    m_sDecParam.sVideoProperty.eVideoBsType = (VIDEO_BITSTREAM_TYPE) (rand() % 2);
 
     iRet = m_pDec->Initialize (&m_sDecParam);
     ASSERT_EQ (iRet, (int32_t) cmResultSuccess);