shithub: openh264

Download patch

ref: eaf4798119c7e94cc54710dcadf0fa589aeb3aa1
parent: b3b083c883829f3837b95051610c7cb29e98a10e
author: Martin Storsjö <martin@martin.st>
date: Thu Nov 19 19:16:52 EST 2015

Readd a test for GetOption in TestInitUninit

In dc2cbe4, the previous test for GetOption that succeeds when the
decoder is initialized was removed. Add a GetOption call for a different
option, now that DECODER_OPTION_DATAFORMAT is removed.

--- a/test/decoder/DecUT_DecExt.cpp
+++ b/test/decoder/DecUT_DecExt.cpp
@@ -206,6 +206,9 @@
   Init();
   m_sDecParam.bParseOnly = false;
   m_pDec->Initialize (&m_sDecParam);
+  eRet = (CM_RETURN) m_pDec->GetOption (DECODER_OPTION_END_OF_STREAM, &iOutput);
+  EXPECT_EQ (eRet, cmResultSuccess);
+  EXPECT_EQ (iOutput, 0);
 
   //Uninitialize, no GetOption can be done
   m_pDec->Uninitialize();