shithub: openh264

Download patch

ref: b3b083c883829f3837b95051610c7cb29e98a10e
parent: 222c84c19381a8fd2185f8a2c051984639a06af7
author: Martin Storsjö <[email protected]>
date: Thu Nov 19 19:11:31 EST 2015

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.

--- a/test/decoder/DecUT_DecExt.cpp
+++ b/test/decoder/DecUT_DecExt.cpp
@@ -203,6 +203,7 @@
     EXPECT_EQ (eRet, cmInitExpected);
   }
   //Initialize first, can get input color format
+  Init();
   m_sDecParam.bParseOnly = false;
   m_pDec->Initialize (&m_sDecParam);