History

Rename the decoder WelsMalloc to WelsMallocz

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.

Martin Storsjö committed 11 years ago

Commit 869870e1 parent 9b442b312 files · +58 −58Browse files

Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 12 files). Show all

Unified · Split

codec/decoder/core/src/au_parser.cpp+1−1
@@ -1111,7 +1111,7 @@ int32_t ParseSps (PWelsDecoderContext pCtx, PBitStringAux pBsAux, int32_t* pPicW · 1110 unmodified lines
1111 1111
1112 //re-write subset SPS to SPS1112 //re-write subset SPS to SPS
1113 SBitStringAux sSubsetSpsBs;1113 SBitStringAux sSubsetSpsBs;
1114 uint8_t* pBsBuf = static_cast<uint8_t*> (WelsMalloc (SPS_PPS_BS_SIZE + 4,1114 uint8_t* pBsBuf = static_cast<uint8_t*> (WelsMallocz (SPS_PPS_BS_SIZE + 4,
1115 "Temp buffer for parse only usage.")); //to reserve 4 bytes for UVLC writing buffer1115 "Temp buffer for parse only usage.")); //to reserve 4 bytes for UVLC writing buffer
1116 if (NULL == pBsBuf) {1116 if (NULL == pBsBuf) {
1117 pCtx->iErrorCode |= dsOutOfMemory;1117 pCtx->iErrorCode |= dsOutOfMemory;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t