enable the case for IDR loss

This commit is contained in:
huili2
2014-04-23 22:52:00 -07:00
parent 9d5bc6fd74
commit 314005435e
4 changed files with 44 additions and 17 deletions

View File

@@ -135,7 +135,7 @@ PPicture PrefetchPic (PPicBuff pPicBuf) {
pPicBuf->iCurrentIdx = iPicIdx;
return pPic;
}
for (iPicIdx = 0 ; iPicIdx < pPicBuf->iCurrentIdx ; ++iPicIdx) {
for (iPicIdx = 0 ; iPicIdx <= pPicBuf->iCurrentIdx ; ++iPicIdx) {
if (pPicBuf->ppPic[iPicIdx] != NULL && pPicBuf->ppPic[iPicIdx]->bAvailableFlag
&& !pPicBuf->ppPic[iPicIdx]->bUsedAsRef) {
pPic = pPicBuf->ppPic[iPicIdx];