fix SetOption scc ltr_ref_num casued memory leak issue.
This commit is contained in:
parent
492627977e
commit
79ef0e19b2
@ -3532,7 +3532,8 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa
|
||||
|| pOldParam->iPicHeight != pNewParam->iPicHeight) ||
|
||||
(pOldParam->SUsedPicRect.iWidth != pNewParam->SUsedPicRect.iWidth
|
||||
|| pOldParam->SUsedPicRect.iHeight != pNewParam->SUsedPicRect.iHeight) ||
|
||||
(pOldParam->bEnableLongTermReference != pNewParam->bEnableLongTermReference);
|
||||
(pOldParam->bEnableLongTermReference != pNewParam->bEnableLongTermReference) ||
|
||||
(pOldParam->iLTRRefNum != pNewParam->iLTRRefNum);
|
||||
if (!bNeedReset) { // Check its picture resolutions/quality settings respectively in each dependency layer
|
||||
iIndexD = 0;
|
||||
assert (pOldParam->iSpatialLayerNum == pNewParam->iSpatialLayerNum);
|
||||
|
Loading…
x
Reference in New Issue
Block a user