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 | if (pPic != NULL) { | 169 | if (pPic != NULL) { |
| 170 | pPicBuf->iCurrentIdx = iPicIdx; | 170 | pPicBuf->iCurrentIdx = iPicIdx; |
| 171 | pPic->iPicBuffIdx = iPicIdx; | ||
| 171 | return pPic; | 172 | return pPic; |
| 172 | } | 173 | } |
| 173 | for (iPicIdx = 0 ; iPicIdx <= pPicBuf->iCurrentIdx ; ++iPicIdx) { | 174 | for (iPicIdx = 0 ; iPicIdx <= pPicBuf->iCurrentIdx ; ++iPicIdx) { |
| @@ -179,6 +180,9 @@ PPicture PrefetchPic (PPicBuff pPicBuf) { · 5 unmodified lines | |||
| 179 | } | 180 | } |
| 180 | 181 | ||
| 181 | pPicBuf->iCurrentIdx = iPicIdx; | 182 | pPicBuf->iCurrentIdx = iPicIdx; |
| 183 | if (pPic != NULL) { | ||
| 184 | pPic->iPicBuffIdx = iPicIdx; | ||
| 185 | } | ||
| 182 | return pPic; | 186 | return pPic; |
| 183 | } | 187 | } |
| 184 | 188 | ||