Showing the changes to codec/decoder/core/src/pic_queue.cpp (1 of 54 files). Show all
Unified · Split
| @@ -69,7 +69,7 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 68 unmodified lines | |||
| 69 | int32_t iLumaSize = 0; | 69 | int32_t iLumaSize = 0; |
| 70 | int32_t iChromaSize = 0; | 70 | int32_t iChromaSize = 0; |
| 71 | 71 | ||
| 72 | pPic = (PPicture) WelsMallocz (sizeof (SPicture), "PPicture"); | 72 | pPic = (PPicture) WelsMallocz (sizeof (SPicture), "PPicture"); |
| 73 | WELS_VERIFY_RETURN_IF (NULL, NULL == pPic); | 73 | WELS_VERIFY_RETURN_IF (NULL, NULL == pPic); |
| 74 | 74 | ||
| 75 | memset (pPic, 0, sizeof (SPicture)); | 75 | memset (pPic, 0, sizeof (SPicture)); |
| @@ -88,7 +88,7 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 12 unmodified lines | |||
| 88 | pPic->iLinesize[0] = iPicWidth; | 88 | pPic->iLinesize[0] = iPicWidth; |
| 89 | pPic->iLinesize[1] = pPic->iLinesize[2] = iPicChromaWidth; | 89 | pPic->iLinesize[1] = pPic->iLinesize[2] = iPicChromaWidth; |
| 90 | } else { | 90 | } else { |
| 91 | pPic->pBuffer[0] = static_cast<uint8_t*> (WelsMallocz (iLumaSize /* luma */ | 91 | pPic->pBuffer[0] = static_cast<uint8_t*> (WelsMallocz (iLumaSize /* luma */ |
| 92 | + (iChromaSize << 1) /* Cb,Cr */, "_pic->buffer[0]")); | 92 | + (iChromaSize << 1) /* Cb,Cr */, "_pic->buffer[0]")); |
| 93 | WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->pBuffer[0], FreePicture (pPic)); | 93 | WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->pBuffer[0], FreePicture (pPic)); |
| 94 | 94 | ||