diff --git a/codec/encoder/core/src/encoder_ext.cpp b/codec/encoder/core/src/encoder_ext.cpp index c86cd492..b5af64a1 100644 --- a/codec/encoder/core/src/encoder_ext.cpp +++ b/codec/encoder/core/src/encoder_ext.cpp @@ -2194,8 +2194,6 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { if (NULL != pCtx->ppDqLayerList && pParam != NULL) { while (ilayer < pParam->iSpatialLayerNum) { SDqLayer* pDq = pCtx->ppDqLayerList[ilayer]; - SSpatialLayerConfig* pDlp = &pCtx->pSvcParam->sSpatialLayers[ilayer]; - // pDq layers if (NULL != pDq) { FreeDqLayer (pDq, pMa); @@ -4896,6 +4894,7 @@ int32_t DynSliceRealloc (sWelsEncCtx* pCtx, if (pCtx->iMaxSliceCount < iMaxSliceNum) pCtx->iMaxSliceCount = iMaxSliceNum; pCurLayer->sSliceEncCtx.iMaxSliceNumConstraint = iMaxSliceNum; + pCurLayer->iMaxSliceNum = iMaxSliceNum; return ENC_RETURN_SUCCESS; }