Showing the changes to codec/decoder/core/src/pic_queue.cpp (1 of 4 files). Show all
Unified · Split
| @@ -83,6 +83,7 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const · 82 unmodified lines | ||
| 83 | 83 | iChromaSize = iPicChromaWidth * iPicChromaHeight; |
| 84 | 84 | pPic->pBuffer[0] = static_cast<uint8_t*> (WelsMalloc (iLumaSize /* luma */ |
| 85 | 85 | + (iChromaSize << 1) /* Cb,Cr */, "_pic->buffer[0]")); |
| 86 | + memset (pPic->pBuffer[0], 128, (iLumaSize + (iChromaSize << 1))); | |
| 86 | 87 | |
| 87 | 88 | WELS_VERIFY_RETURN_PROC_IF (NULL, NULL == pPic->pBuffer[0], FreePicture (pPic)); |
| 88 | 89 | pPic->iLinesize[0] = iPicWidth; |