ref: a7b22795bfd069cb49856f1082ebeb0dac216cab
parent: 3c753c42b891c51ca6715f64e8f8427a5f140107
parent: 50e2eb5e3c067c123c18e88d4861f0be33cf1db9
author: Ethan Hugg <[email protected]>
date: Fri Nov 7 04:49:00 EST 2014
Merge pull request #1510 from mstorsjo/unsigned-int-literals Change integer literals to unsigned to avoid warnings about comparison between signed and unsigned
--- a/test/decoder/DecUT_DecExt.cpp
+++ b/test/decoder/DecUT_DecExt.cpp
@@ -412,15 +412,15 @@
//Decoder error bs
DecoderBs ("res/Error_I_P.264");
m_pDec->GetOption (DECODER_OPTION_GET_STATISTICS, &sDecStatic);
- EXPECT_EQ (57, sDecStatic.uiAvgEcRatio);
- EXPECT_EQ (5, sDecStatic.uiDecodedFrameCount);
- EXPECT_EQ (288, sDecStatic.uiHeight);
- EXPECT_EQ (1, sDecStatic.uiIDRRecvNum);
- EXPECT_EQ (3, sDecStatic.uiResolutionChangeTimes);
- EXPECT_EQ (352, sDecStatic.uiWidth);
- EXPECT_EQ (4, sDecStatic.uiEcFrameNum);
- EXPECT_EQ (2, sDecStatic.uiEcIDRNum);
- EXPECT_EQ (0, sDecStatic.uiIDRLostNum);
+ EXPECT_EQ (57u, sDecStatic.uiAvgEcRatio);
+ EXPECT_EQ (5u, sDecStatic.uiDecodedFrameCount);
+ EXPECT_EQ (288u, sDecStatic.uiHeight);
+ EXPECT_EQ (1u, sDecStatic.uiIDRRecvNum);
+ EXPECT_EQ (3u, sDecStatic.uiResolutionChangeTimes);
+ EXPECT_EQ (352u, sDecStatic.uiWidth);
+ EXPECT_EQ (4u, sDecStatic.uiEcFrameNum);
+ EXPECT_EQ (2u, sDecStatic.uiEcIDRNum);
+ EXPECT_EQ (0u, sDecStatic.uiIDRLostNum);
Uninit();
//Decoder error bs when the first IDR lost
@@ -429,15 +429,15 @@
m_pDec->SetOption (DECODER_OPTION_ERROR_CON_IDC, &iError);
DecoderBs ("res/BA_MW_D_IDR_LOST.264");
m_pDec->GetOption (DECODER_OPTION_GET_STATISTICS, &sDecStatic);
- EXPECT_EQ (0, sDecStatic.uiAvgEcRatio);
- EXPECT_EQ (97, sDecStatic.uiDecodedFrameCount);
- EXPECT_EQ (144, sDecStatic.uiHeight);
- EXPECT_EQ (3, sDecStatic.uiIDRRecvNum);
- EXPECT_EQ (0, sDecStatic.uiEcIDRNum);
- EXPECT_EQ (1, sDecStatic.uiResolutionChangeTimes);
- EXPECT_EQ (176, sDecStatic.uiWidth);
- EXPECT_EQ (27, sDecStatic.uiEcFrameNum);
- EXPECT_EQ (1, sDecStatic.uiIDRLostNum);
+ EXPECT_EQ (0u, sDecStatic.uiAvgEcRatio);
+ EXPECT_EQ (97u, sDecStatic.uiDecodedFrameCount);
+ EXPECT_EQ (144u, sDecStatic.uiHeight);
+ EXPECT_EQ (3u, sDecStatic.uiIDRRecvNum);
+ EXPECT_EQ (0u, sDecStatic.uiEcIDRNum);
+ EXPECT_EQ (1u, sDecStatic.uiResolutionChangeTimes);
+ EXPECT_EQ (176u, sDecStatic.uiWidth);
+ EXPECT_EQ (27u, sDecStatic.uiEcFrameNum);
+ EXPECT_EQ (1u, sDecStatic.uiIDRLostNum);
Uninit();
//ecoder error bs when the first P lost
@@ -448,15 +448,15 @@
DecoderBs ("res/BA_MW_D_P_LOST.264");
m_pDec->GetOption (DECODER_OPTION_GET_STATISTICS, &sDecStatic);
- EXPECT_EQ (0, sDecStatic.uiAvgEcRatio);
- EXPECT_EQ (99, sDecStatic.uiDecodedFrameCount);
- EXPECT_EQ (144, sDecStatic.uiHeight);
- EXPECT_EQ (4, sDecStatic.uiIDRRecvNum);
- EXPECT_EQ (0, sDecStatic.uiEcIDRNum);
- EXPECT_EQ (1, sDecStatic.uiResolutionChangeTimes);
- EXPECT_EQ (176, sDecStatic.uiWidth);
- EXPECT_EQ (28, sDecStatic.uiEcFrameNum);
- EXPECT_EQ (0, sDecStatic.uiIDRLostNum);
+ EXPECT_EQ (0u, sDecStatic.uiAvgEcRatio);
+ EXPECT_EQ (99u, sDecStatic.uiDecodedFrameCount);
+ EXPECT_EQ (144u, sDecStatic.uiHeight);
+ EXPECT_EQ (4u, sDecStatic.uiIDRRecvNum);
+ EXPECT_EQ (0u, sDecStatic.uiEcIDRNum);
+ EXPECT_EQ (1u, sDecStatic.uiResolutionChangeTimes);
+ EXPECT_EQ (176u, sDecStatic.uiWidth);
+ EXPECT_EQ (28u, sDecStatic.uiEcFrameNum);
+ EXPECT_EQ (0u, sDecStatic.uiIDRLostNum);
Uninit();
//EC enable
@@ -468,14 +468,14 @@
m_pDec->GetOption (DECODER_OPTION_GET_STATISTICS, &sDecStatic);
- EXPECT_EQ (0, sDecStatic.uiAvgEcRatio);
- EXPECT_EQ (9, sDecStatic.uiDecodedFrameCount);
- EXPECT_EQ (192, sDecStatic.uiHeight);
- EXPECT_EQ (1, sDecStatic.uiIDRRecvNum);
- EXPECT_EQ (1, sDecStatic.uiResolutionChangeTimes);
- EXPECT_EQ (320, sDecStatic.uiWidth);
- EXPECT_EQ (0, sDecStatic.uiEcFrameNum);
- EXPECT_EQ (0, sDecStatic.uiIDRLostNum);
+ EXPECT_EQ (0u, sDecStatic.uiAvgEcRatio);
+ EXPECT_EQ (9u, sDecStatic.uiDecodedFrameCount);
+ EXPECT_EQ (192u, sDecStatic.uiHeight);
+ EXPECT_EQ (1u, sDecStatic.uiIDRRecvNum);
+ EXPECT_EQ (1u, sDecStatic.uiResolutionChangeTimes);
+ EXPECT_EQ (320u, sDecStatic.uiWidth);
+ EXPECT_EQ (0u, sDecStatic.uiEcFrameNum);
+ EXPECT_EQ (0u, sDecStatic.uiIDRLostNum);
Uninit();
}