From 863ec74f0d6629368ca86c0f7fc150c88226b962 Mon Sep 17 00:00:00 2001 From: ruil2 Date: Fri, 27 Jun 2014 18:09:40 +0800 Subject: [PATCH] fix update parameters --- codec/encoder/core/src/encoder_ext.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/codec/encoder/core/src/encoder_ext.cpp b/codec/encoder/core/src/encoder_ext.cpp index cd302203..5fb27d1d 100644 --- a/codec/encoder/core/src/encoder_ext.cpp +++ b/codec/encoder/core/src/encoder_ext.cpp @@ -3593,7 +3593,6 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa (pOldParam->bEnableLongTermReference != pNewParam->bEnableLongTermReference) || (pOldParam->iLTRRefNum != pNewParam->iLTRRefNum); if (pNewParam->iMaxNumRefFrame > pOldParam->iMaxNumRefFrame) { - pNewParam->iMaxNumRefFrame = pOldParam->iMaxNumRefFrame; bNeedReset = true; } @@ -3676,7 +3675,9 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa 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;