shithub: openh264

Download patch

ref: 7b3bf074b3f220d7625890e617ae9750cb83c2a8
parent: 6190c10de8842ff813dfc7d2101b8e71479ce6df
parent: 352f5eea7a73a16c3ed68256327a04311df585b0
author: dongzha <[email protected]>
date: Mon Aug 11 06:53:28 EDT 2014

Merge pull request #1258 from mstorsjo/fetch-codec-params

Get the actual used parameters in the codec in TemporalLayerSettingTest

--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -165,10 +165,11 @@
     EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
     EXPECT_EQ (sFbi.eFrameType, static_cast<int> (videoFrameTypeP));
 
-    memcpy (pOption, pParamExt, sizeof (SEncParamExt));
+    ENCODER_OPTION eOptionId = ENCODER_OPTION_SVC_ENCODE_PARAM_EXT;
+    iResult = pPtrEnc->GetOption (eOptionId, pOption);
+    EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));
     pOption ->iTemporalLayerNum = 4;
 
-    ENCODER_OPTION eOptionId = ENCODER_OPTION_SVC_ENCODE_PARAM_EXT;
     iResult = pPtrEnc->SetOption (eOptionId, pOption);
     EXPECT_EQ (iResult, static_cast<int> (cmResultSuccess));