Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 4 files). Show all
Unified · Split
| @@ -210,12 +210,6 @@ int32_t WelsMbInterConstruction (PWelsDecoderContext pCtx, PDqLayer pCurLayer) { · 209 unmodified lines | ||
| 210 | 210 | } else { |
| 211 | 211 | if (pCtx->pTempDec == NULL) |
| 212 | 212 | pCtx->pTempDec = AllocPicture (pCtx, pCtx->pSps->iMbWidth << 4, pCtx->pSps->iMbHeight << 4); |
| 213 | − else { | |
| 214 | − if (pCtx->pTempDec->iLinesize[0] != pCtx->pDec->iLinesize[0]) { | |
| 215 | − FreePicture (pCtx->pTempDec, pCtx->pMemAlign); | |
| 216 | − pCtx->pTempDec = AllocPicture (pCtx, pCtx->pSps->iMbWidth << 4, pCtx->pSps->iMbHeight << 4); | |
| 217 | − } | |
| 218 | − } | |
| 219 | 213 | uint8_t* pTempDstYCbCr[3]; |
| 220 | 214 | uint8_t* pDstYCbCr[3]; |
| 221 | 215 | pTempDstYCbCr[0] = pCtx->pTempDec->pData[0] + ((iMbY * iLumaStride + iMbX) << 4); |