Showing the changes to codec/decoder/core/src/pic_queue.cpp (1 of 4 files). Show all
Unified · Split
| @@ -135,7 +135,7 @@ PPicture PrefetchPic (PPicBuff pPicBuf) { · 134 unmodified lines | ||
| 135 | 135 | pPicBuf->iCurrentIdx = iPicIdx; |
| 136 | 136 | return pPic; |
| 137 | 137 | } |
| 138 | − for (iPicIdx = 0 ; iPicIdx < pPicBuf->iCurrentIdx ; ++iPicIdx) { | |
| 138 | + for (iPicIdx = 0 ; iPicIdx <= pPicBuf->iCurrentIdx ; ++iPicIdx) { | |
| 139 | 139 | if (pPicBuf->ppPic[iPicIdx] != NULL && pPicBuf->ppPic[iPicIdx]->bAvailableFlag |
| 140 | 140 | && !pPicBuf->ppPic[iPicIdx]->bUsedAsRef) { |
| 141 | 141 | pPic = pPicBuf->ppPic[iPicIdx]; |