From d1437f23045a63af0149afc0082475f23fd32433 Mon Sep 17 00:00:00 2001 From: huili2 Date: Wed, 18 Jun 2014 19:40:54 -0700 Subject: [PATCH] remove unused param to prevent access violation --- codec/encoder/core/src/ref_list_mgr_svc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/codec/encoder/core/src/ref_list_mgr_svc.cpp b/codec/encoder/core/src/ref_list_mgr_svc.cpp index 202c67d3..9ae914f7 100644 --- a/codec/encoder/core/src/ref_list_mgr_svc.cpp +++ b/codec/encoder/core/src/ref_list_mgr_svc.cpp @@ -363,14 +363,12 @@ bool WelsUpdateRefList (void* pEncCtx) { 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) {