shithub: openh264

Download patch

ref: a225228dd1477d7f212565b619614d3eb5043baf
parent: 6a6829b84cbedd6eebfb97c8d31209f1ab0c4398
parent: af9bce541519a9e0fc03734c3b723df1150c8c8d
author: guangwei <GuangweiWang@users.noreply.github.com>
date: Tue May 22 04:55:19 EDT 2018

Merge pull request #2971 from mstorsjo/fix-test

Clip fFrameRate locally in EncoderInterfaceTest.EncoderOptionSetTest

--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -205,9 +205,10 @@
   else {
     EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
 
+    fFrameRate = WELS_CLIP3 (fFrameRate, 1, 60);
     iResult = pPtrEnc->GetOption (eOptionId, &fReturn);
     EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
-    EXPECT_EQ (WELS_CLIP3 (fFrameRate, 1, 60), fReturn);
+    EXPECT_EQ (fFrameRate, fReturn);
   }
   PrepareOneSrcFrame();
   iResult = pPtrEnc->EncodeFrame (pSrcPic, &sFbi);