Merge pull request #1127 from ruil2/temporal_bug_fix
fix bug when temporal layer changes
This commit is contained in:
commit
b86e1f00b2
@ -3718,7 +3718,10 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa
|
|||||||
pOldParam->bPrefixNalAddingCtrl = pNewParam->bPrefixNalAddingCtrl;
|
pOldParam->bPrefixNalAddingCtrl = pNewParam->bPrefixNalAddingCtrl;
|
||||||
pOldParam->iNumRefFrame = pNewParam->iNumRefFrame; // number of reference frame used
|
pOldParam->iNumRefFrame = pNewParam->iNumRefFrame; // number of reference frame used
|
||||||
pOldParam->uiGopSize = pNewParam->uiGopSize;
|
pOldParam->uiGopSize = pNewParam->uiGopSize;
|
||||||
pOldParam->iTemporalLayerNum = pNewParam->iTemporalLayerNum;
|
if (pOldParam->iTemporalLayerNum != pNewParam->iTemporalLayerNum) {
|
||||||
|
pOldParam->iTemporalLayerNum = pNewParam->iTemporalLayerNum;
|
||||||
|
(*ppCtx)->iCodingIndex = 0;
|
||||||
|
}
|
||||||
pOldParam->iDecompStages = pNewParam->iDecompStages;
|
pOldParam->iDecompStages = pNewParam->iDecompStages;
|
||||||
/* denoise control */
|
/* denoise control */
|
||||||
pOldParam->bEnableDenoise = pNewParam->bEnableDenoise;
|
pOldParam->bEnableDenoise = pNewParam->bEnableDenoise;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user