shithub: openh264

Download patch

ref: 245367696019c118c756a99bcfc15faf6f773437
parent: 7a2e536e44d6152864568818ce74390d12235e3c
author: Martin Storsjö <martin@martin.st>
date: Thu Nov 13 05:48:45 EST 2014

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;