shithub: openh264

Download patch

ref: 863ec74f0d6629368ca86c0f7fc150c88226b962
parent: f8ca91f317504086cab5fb7cd67d86d0dc917086
author: ruil2 <[email protected]>
date: Fri Jun 27 14:09:40 EDT 2014

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;