Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2194,8 +2194,6 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 2193 unmodified lines | |||
| 2194 | if (NULL != pCtx->ppDqLayerList && pParam != NULL) { | 2194 | if (NULL != pCtx->ppDqLayerList && pParam != NULL) { |
| 2195 | while (ilayer < pParam->iSpatialLayerNum) { | 2195 | while (ilayer < pParam->iSpatialLayerNum) { |
| 2196 | SDqLayer* pDq = pCtx->ppDqLayerList[ilayer]; | 2196 | SDqLayer* pDq = pCtx->ppDqLayerList[ilayer]; |
| 2197 | SSpatialLayerConfig* pDlp = &pCtx->pSvcParam->sSpatialLayers[ilayer]; | ||
| 2198 | |||
| 2199 | // pDq layers | 2197 | // pDq layers |
| 2200 | if (NULL != pDq) { | 2198 | if (NULL != pDq) { |
| 2201 | FreeDqLayer (pDq, pMa); | 2199 | FreeDqLayer (pDq, pMa); |
| @@ -4896,6 +4894,7 @@ int32_t DynSliceRealloc (sWelsEncCtx* pCtx, · 2694 unmodified lines | |||
| 4896 | if (pCtx->iMaxSliceCount < iMaxSliceNum) | 4894 | if (pCtx->iMaxSliceCount < iMaxSliceNum) |
| 4897 | pCtx->iMaxSliceCount = iMaxSliceNum; | 4895 | pCtx->iMaxSliceCount = iMaxSliceNum; |
| 4898 | pCurLayer->sSliceEncCtx.iMaxSliceNumConstraint = iMaxSliceNum; | 4896 | pCurLayer->sSliceEncCtx.iMaxSliceNumConstraint = iMaxSliceNum; |
| 4897 | pCurLayer->iMaxSliceNum = iMaxSliceNum; | ||
| 4899 | return ENC_RETURN_SUCCESS; | 4898 | return ENC_RETURN_SUCCESS; |
| 4900 | } | 4899 | } |
| 4901 | 4900 | ||