fix a miss of assigning and remove an unused line
This commit is contained in:
parent
914302a462
commit
43fdf74fa6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user