shithub: openh264

Download patch

ref: cfbf32b3fbc23c527f2c73d283394f2b2fb94e09
parent: 06e56ecdd857ab36847dcc63a8faa55bfa7d429d
parent: a59a989d9b5a32703519497ba2d441617d0974f7
author: ruil2 <ruil2@cisco.com>
date: Tue Sep 23 13:21:54 EDT 2014

Merge pull request #1381 from mstorsjo/silence-warnings

Silence warnings with gcc in GetOptionTid_AVC_NOPREFIX

--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -885,7 +885,7 @@
     decoder_->GetOption (DECODER_OPTION_TEMPORAL_ID, &iTid);
     std::vector<SLostSim>::iterator iter = m_SLostSim.begin();
     bool bHasVCL = false;
-    for (int k = 0; k < m_SLostSim.size(); k++) {
+    for (unsigned int k = 0; k < m_SLostSim.size(); k++) {
       if (IS_VCL_NAL (iter->eNalType, 0) && iter->isLost == false) {
         bHasVCL = true;
         break;
@@ -892,6 +892,7 @@
       }
       iter++;
     }
+    (void) bHasVCL;
     if (iTid != -1) {
       ASSERT_EQ (iTid, 0);
     }