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.
Showing the changes to test/decoder/DecUT_DecExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -203,6 +203,7 @@ void DecoderInterfaceTest::TestInitUninit() { · 202 unmodified lines | ||
| 203 | 203 | EXPECT_EQ (eRet, cmInitExpected); |
| 204 | 204 | } |
| 205 | 205 | //Initialize first, can get input color format |
| 206 | + Init(); | |
| 206 | 207 | m_sDecParam.bParseOnly = false; |
| 207 | 208 | m_pDec->Initialize (&m_sDecParam); |
| 208 | 209 | |