History

avoid LTR reference frames overflow

ruil2 committed 12 years ago

Commit b5a01ef1 parent c1cc1951 file · +4 −0Browse files

Unified · Split

codec/encoder/core/src/ref_list_mgr_svc.cpp+4−0
@@ -315,6 +315,10 @@ static inline void LTRMarkProcess (sWelsEncCtx* pCtx) { · 314 unmodified lines
315315 }
316316 pLongRefList[0] = pShortRefList[i];
317317 pRefList->uiLongRefCount++;
318+ if (pRefList->uiLongRefCount > pCtx->pSvcParam->iLTRRefNum) {
319+ SetUnref (pRefList->pLongRefList[pRefList->uiLongRefCount - 1]);
320+ DeleteLTRFromLongList (pCtx, pRefList->uiLongRefCount - 1);
321+ }
318322 DeleteSTRFromShortList (pCtx, i);
319323 }
320324 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t