Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 5 files). Show all
Unified · Split
| @@ -220,6 +220,9 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 219 unmodified lines | |||
| 220 | ppDst[0] = ppDst[0] + pCtx->sFrameCrop.iTopOffset * 2 * pPic->iLinesize[0] + pCtx->sFrameCrop.iLeftOffset * 2; | 220 | ppDst[0] = ppDst[0] + pCtx->sFrameCrop.iTopOffset * 2 * pPic->iLinesize[0] + pCtx->sFrameCrop.iLeftOffset * 2; |
| 221 | ppDst[1] = ppDst[1] + pCtx->sFrameCrop.iTopOffset * pPic->iLinesize[1] + pCtx->sFrameCrop.iLeftOffset; | 221 | ppDst[1] = ppDst[1] + pCtx->sFrameCrop.iTopOffset * pPic->iLinesize[1] + pCtx->sFrameCrop.iLeftOffset; |
| 222 | ppDst[2] = ppDst[2] + pCtx->sFrameCrop.iTopOffset * pPic->iLinesize[1] + pCtx->sFrameCrop.iLeftOffset; | 222 | ppDst[2] = ppDst[2] + pCtx->sFrameCrop.iTopOffset * pPic->iLinesize[1] + pCtx->sFrameCrop.iLeftOffset; |
| 223 | for (int i = 0; i < 3; ++i) { | ||
| 224 | pDstInfo->pDst[i] = ppDst[i]; | ||
| 225 | } | ||
| 223 | pDstInfo->iBufferStatus = 1; | 226 | pDstInfo->iBufferStatus = 1; |
| 224 | if (GetThreadCount (pCtx) > 1 && pPic->bIsComplete == false) { | 227 | if (GetThreadCount (pCtx) > 1 && pPic->bIsComplete == false) { |
| 225 | pPic->bIsComplete = true; | 228 | pPic->bIsComplete = true; |