shithub: openh264

Download patch

ref: 6e8fceb0c7c380210e5c9a56e03a6ec4fe79b65f
parent: bcdb91183f65f74e2aa0b3b62e933fda003929ae
parent: d1437f23045a63af0149afc0082475f23fd32433
author: huili2 <huili2@cisco.com>
date: Tue Jun 24 09:24:33 EDT 2014

Merge pull request #1001 from huili2/reflist_warning_remove

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) {