shithub: openh264

Download patch

ref: c8b4ef22571c7fc831752a522f25b27faba86424
parent: 894f073e4b64d66c9825c245b6f2c5da10494056
parent: 863ec74f0d6629368ca86c0f7fc150c88226b962
author: huili2 <[email protected]>
date: Sat Jun 28 07:05:54 EDT 2014

Merge pull request #1029 from ruil2/update_param

    fix update parameters

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -3593,7 +3593,6 @@
                 (pOldParam->bEnableLongTermReference != pNewParam->bEnableLongTermReference) ||
                 (pOldParam->iLTRRefNum != pNewParam->iLTRRefNum);
   if (pNewParam->iMaxNumRefFrame > pOldParam->iMaxNumRefFrame) {
-    pNewParam->iMaxNumRefFrame = pOldParam->iMaxNumRefFrame;
     bNeedReset = true;
   }
 
@@ -3676,7 +3675,9 @@
     pOldParam->bEnableSpsPpsIdAddition = pNewParam->bEnableSpsPpsIdAddition;
     pOldParam->bPrefixNalAddingCtrl = pNewParam->bPrefixNalAddingCtrl;
     pOldParam->iNumRefFrame		= pNewParam->iNumRefFrame;		// number of reference frame used
-
+    pOldParam->uiGopSize = pNewParam->uiGopSize;
+    pOldParam->iTemporalLayerNum = pNewParam->iTemporalLayerNum;
+    pOldParam->iDecompStages = pNewParam->iDecompStages;
     /* denoise control */
     pOldParam->bEnableDenoise	= pNewParam->bEnableDenoise;