shithub: openh264

Download patch

ref: e7cd53e81b43a841c1256d890e77534a20f6b0ab
parent: f8d5f93b16b788f7326aa7f286601810571c9e78
author: Martin Storsjö <[email protected]>
date: Tue Sep 16 06:08:20 EDT 2014

Fix build warnings with gcc in EncodeDecodeTest

Avoid a comparison between signed and unsigned integers, and avoid
a warning about a variable which is set but not used.

--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -270,7 +270,7 @@
     if (m_P2PmodeFlag && temple_id == 0) {
       pDecoder->GetOption (DECODER_OPTION_IDR_PIC_ID, &tempInt);
       // idr_pic_id change ,reset last correct position
-      if (p_LTR_Recover_Request->uiIDRPicId != tempInt) {
+      if (p_LTR_Recover_Request->uiIDRPicId != (unsigned int) tempInt) {
         p_LTR_Recover_Request->uiIDRPicId = tempInt;
         p_LTR_Recover_Request->iLastCorrectFrameNum = -1;
       }
@@ -731,6 +731,7 @@
     LTRMarkFeedback (decoder_, encoder_, &m_LTR_Marking_Feedback, rv);
     iIdx++;
   }
+  (void) iSkipedBytes;
 }
 
 INSTANTIATE_TEST_CASE_P (EncodeDecodeTestBase, EncodeDecodeTestAPI,