shithub: openh264

Download patch

ref: 015bb3fe1329fa97953397cf5389e29c38b31829
parent: 959a7b78b96c31e8caaf7fb107665a377d2792b8
author: Martin Storsjö <[email protected]>
date: Wed Mar 21 06:41:36 EDT 2018

Update the test for ENCODER_OPTION_IDR_INTERVAL after 0f8897db

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