Fully initialize m_sDecParam in TestInitUninit

Before dc2cbe4, the DecoderConfigParam function returned early
since DecoderSetCsp signaled a failure, which is why the uninitialized
parameters weren't read before.

This fixes valgrind warnings about conditional jumps depending on
uninitialized values.
This commit is contained in:
Martin Storsjö 2015-11-20 00:11:31 +02:00
parent 222c84c193
commit b3b083c883

View File

@ -203,6 +203,7 @@ void DecoderInterfaceTest::TestInitUninit() {
EXPECT_EQ (eRet, cmInitExpected);
}
//Initialize first, can get input color format
Init();
m_sDecParam.bParseOnly = false;
m_pDec->Initialize (&m_sDecParam);