ref: d52aadf290fc5c05ee911c52a8608ca20f35c2a8
parent: 6d9220c43b74272fab1759a328a27d54f720fafb
author: Martin Storsjö <martin@martin.st>
date: Tue Nov 22 04:21:30 EST 2016
Fix build warnings on MSVC Don't compare a bool to an unsigned int constant, but compare to proper bool constants instead.
--- a/test/decoder/DecUT_DecExt.cpp
+++ b/test/decoder/DecUT_DecExt.cpp
@@ -622,7 +622,7 @@
m_pDec->GetOption (DECODER_OPTION_GET_SAR_INFO, &sVuiSarInfo);
EXPECT_EQ (0u, sVuiSarInfo.uiSarWidth);
EXPECT_EQ (0u, sVuiSarInfo.uiSarHeight);
- EXPECT_EQ (0u, sVuiSarInfo.bOverscanAppropriateFlag);
+ EXPECT_EQ (sVuiSarInfo.bOverscanAppropriateFlag, false); // EXPECT_EQ does not like "false" as its first arg
// setoption not support,
eRet = (CM_RETURN)m_pDec->SetOption (DECODER_OPTION_GET_SAR_INFO, NULL);
EXPECT_EQ (eRet, cmInitParaError);
@@ -632,7 +632,7 @@
m_pDec->GetOption (DECODER_OPTION_GET_SAR_INFO, &sVuiSarInfo);
EXPECT_EQ (80u, sVuiSarInfo.uiSarWidth); //DO NOT MODIFY the data value
EXPECT_EQ (33u, sVuiSarInfo.uiSarHeight); //DO NOT MODIFY the data value
- EXPECT_EQ (1u, sVuiSarInfo.bOverscanAppropriateFlag); //DO NOT MODIFY the data value
+ EXPECT_EQ (true, sVuiSarInfo.bOverscanAppropriateFlag); //DO NOT MODIFY the data value
Uninit();
}