ref: 79ef0e19b25493145cc437d85257a0f2e43b4060
parent: 492627977e800388a54e6f84be3a0da1becdebf4
author: lyao2 <[email protected]>
date: Thu Jun 12 12:15:29 EDT 2014
fix SetOption scc ltr_ref_num casued memory leak issue.
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -3532,7 +3532,8 @@
|| 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);