ref: 05a95e0ecc08ed39cf5de728f5a8a2d3c72594a3
parent: 6d9220c43b74272fab1759a328a27d54f720fafb
parent: d52aadf290fc5c05ee911c52a8608ca20f35c2a8
author: huili2 <[email protected]>
date: Wed Nov 23 08:26:32 EST 2016
Merge pull request #2603 from mstorsjo/fix-msvc-warning Fix build warnings on MSVC
--- 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();
}