shithub: openh264

Download patch

ref: aed7b2316c03d17904ba13374b62209df2953f72
parent: 7a2e536e44d6152864568818ce74390d12235e3c
parent: 245367696019c118c756a99bcfc15faf6f773437
author: ruil2 <[email protected]>
date: Thu Nov 13 12:17:41 EST 2014

Merge pull request #1528 from mstorsjo/fix-warnings

Cast to the right data type to avoid comparison warnings in gcc

--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -745,7 +745,7 @@
   EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
   iResult = pPtrEnc->GetOption (ENCODER_OPTION_GET_STATISTICS, &sEncoderStatistics);
   EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
-  EXPECT_EQ (static_cast<int> (sEncoderStatistics.fAverageFrameRate), sEncoderStatistics.uiInputFrameCount);
+  EXPECT_EQ (static_cast<unsigned int> (sEncoderStatistics.fAverageFrameRate), sEncoderStatistics.uiInputFrameCount);
 
   // 4, change log interval
   int32_t iInterval = 0;