Showing the changes to codec/decoder/core/src/pic_queue.cpp (1 of 29 files). Show all
Unified · Split
| @@ -168,6 +168,7 @@ PPicture PrefetchPic (PPicBuff pPicBuf) { · 167 unmodified lines | ||
| 168 | 168 | } |
| 169 | 169 | if (pPic != NULL) { |
| 170 | 170 | pPicBuf->iCurrentIdx = iPicIdx; |
| 171 | + pPic->iPicBuffIdx = iPicIdx; | |
| 171 | 172 | return pPic; |
| 172 | 173 | } |
| 173 | 174 | for (iPicIdx = 0 ; iPicIdx <= pPicBuf->iCurrentIdx ; ++iPicIdx) { |
| @@ -179,6 +180,9 @@ PPicture PrefetchPic (PPicBuff pPicBuf) { · 5 unmodified lines | ||
| 179 | 180 | } |
| 180 | 181 | |
| 181 | 182 | pPicBuf->iCurrentIdx = iPicIdx; |
| 183 | + if (pPic != NULL) { | |
| 184 | + pPic->iPicBuffIdx = iPicIdx; | |
| 185 | + } | |
| 182 | 186 | return pPic; |
| 183 | 187 | } |
| 184 | 188 | |