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
11111111
11121112 //re-write subset SPS to SPS
11131113 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,
11151115 "Temp buffer for parse only usage.")); //to reserve 4 bytes for UVLC writing buffer
11161116 if (NULL == pBsBuf) {
11171117 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