shithub: openh264

Download patch

ref: a59a989d9b5a32703519497ba2d441617d0974f7
parent: 06e56ecdd857ab36847dcc63a8faa55bfa7d429d
author: Martin Storsjö <[email protected]>
date: Tue Sep 23 05:39:18 EDT 2014

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);
     }