ref: 43fdf74fa60078d64b61dbc0443de8c02f5dc8a7
parent: 914302a46263d6042d70853a47f5d636ac5ea7a5
author: sijchen <sijchen@cisco.com>
date: Wed Feb 10 05:38:17 EST 2016
fix a miss of assigning and remove an unused line
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -2194,8 +2194,6 @@
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 @@
if (pCtx->iMaxSliceCount < iMaxSliceNum)
pCtx->iMaxSliceCount = iMaxSliceNum;
pCurLayer->sSliceEncCtx.iMaxSliceNumConstraint = iMaxSliceNum;
+ pCurLayer->iMaxSliceNum = iMaxSliceNum;
return ENC_RETURN_SUCCESS;
}