shithub: openh264

Download patch

ref: b90f8fc914b3372a22b76d870373090011e99c3c
parent: 959a7b78b96c31e8caaf7fb107665a377d2792b8
parent: 015bb3fe1329fa97953397cf5389e29c38b31829
author: ruil2 <ruil2@cisco.com>
date: Thu Mar 22 05:52:50 EDT 2018

Merge pull request #2938 from mstorsjo/test-idr-interval

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();