This function actually zero-initializes the allocated memory, thus make this clear in the function name. This makes the function name match the same behaviour in the encoder.
Showing the changes to codec/decoder/core/src/fmo.cpp (1 of 12 files). Show all
Unified · Split
| @@ -133,7 +133,7 @@ static inline int32_t FmoGenerateSliceGroup (PFmo pFmo, const PPps kpPps, const · 132 unmodified lines | ||
| 133 | 133 | |
| 134 | 134 | |
| 135 | 135 | WelsFree (pFmo->pMbAllocMap, "_fmo->pMbAllocMap"); |
| 136 | − pFmo->pMbAllocMap = (uint8_t*)WelsMalloc (iNumMb * sizeof (uint8_t), "_fmo->pMbAllocMap"); | |
| 136 | + pFmo->pMbAllocMap = (uint8_t*)WelsMallocz (iNumMb * sizeof (uint8_t), "_fmo->pMbAllocMap"); | |
| 137 | 137 | WELS_VERIFY_RETURN_IF (1, (NULL == pFmo->pMbAllocMap)) // out of memory |
| 138 | 138 | |
| 139 | 139 | pFmo->iCountMbNum = iNumMb; |