shithub: openh264

Download patch

ref: 15124b125841e58cc28721d3ad11b4f6589d8a33
parent: aa7eb5fd094258a2c7fa1fdcfa1b119e86323983
author: lyao2 <lyao2@LYAO2-WS01.cisco.com>
date: Tue Sep 2 09:41:00 EDT 2014

fix bug

--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -173,6 +173,8 @@
 
   iResult = pPtrEnc->GetOption (eOptionId, &iReturn);
   EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
+  if (iValue < -1 || iValue == 0)
+    iValue = 1;
   EXPECT_EQ (iValue, iReturn);
 
   PrepareOneSrcFrame();