History

Merge pull request #1321 from ruil2/ltr_check

avoid LTR reference frames overflow

dongzha committed 12 years ago

Commit cef43e32 parents c1cc195 b5a01ef1 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
315 }315 }
316 pLongRefList[0] = pShortRefList[i];316 pLongRefList[0] = pShortRefList[i];
317 pRefList->uiLongRefCount++;317 pRefList->uiLongRefCount++;
318 if (pRefList->uiLongRefCount > pCtx->pSvcParam->iLTRRefNum) {
319 SetUnref (pRefList->pLongRefList[pRefList->uiLongRefCount - 1]);
320 DeleteLTRFromLongList (pCtx, pRefList->uiLongRefCount - 1);
321 }
318 DeleteSTRFromShortList (pCtx, i);322 DeleteSTRFromShortList (pCtx, i);
319 }323 }
320}324}

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