ref: d1437f23045a63af0149afc0082475f23fd32433
parent: 37b64fc9d60e3ea9b8764eb1250fe9de16096c9e
author: huili2 <huili2@cisco.com>
date: Wed Jun 18 15:40:54 EDT 2014
remove unused param to prevent access violation
--- a/codec/encoder/core/src/ref_list_mgr_svc.cpp
+++ b/codec/encoder/core/src/ref_list_mgr_svc.cpp
@@ -363,14 +363,12 @@
const uint8_t kuiTid = pCtx->uiTemporalId;
const uint8_t kuiDid = pCtx->uiDependencyId;
const EWelsSliceType keSliceType = pCtx->eSliceType;
- const int32_t kiSwapIdx = (pCtx->eSliceType == P_SLICE) ? (kiNumRef - LONG_TERM_REF_NUM) : ((
- pCtx->pSvcParam->bEnableLongTermReference) ? (kiNumRef - pLtr->iCurLtrIdx) : (1));
uint32_t i = 0;
// Need update pRef list in case store base layer or target dependency layer construction
if (NULL == pCtx->pCurDqLayer)
return false;
- if (NULL == pRefList || NULL == pRefList->pRef[0] || NULL == pRefList->pRef[kiSwapIdx])
+ if (NULL == pRefList || NULL == pRefList->pRef[0])
return false;
if (NULL != pCtx->pDecPic) {