fix a miss of assigning and remove an unused line

This commit is contained in:
sijchen 2016-02-10 10:38:17 -08:00
parent 914302a462
commit 43fdf74fa6

View File

@ -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;
}