History

change return value to match the actual status

Karina committed 9 years ago

Commit 35893511 parent 1a9aa4c1 file · +2 −2Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+2−2
@@ -251,7 +251,7 @@ int32_t CWelsDecoder::InitDecoder (const SDecodingParam* pParam) { · 250 unmodified lines
251251 return cmMallocMemeError;
252252 int32_t iCacheLineSize = 16; // on chip cache line size in byte
253253 m_pDecContext->pMemAlign = new CMemoryAlign (iCacheLineSize);
254− WELS_VERIFY_RETURN_PROC_IF (1, (NULL == m_pDecContext->pMemAlign), UninitDecoder())
254+ WELS_VERIFY_RETURN_PROC_IF (cmMallocMemeError, (NULL == m_pDecContext->pMemAlign), UninitDecoder())
255255
256256 //fill in default value into context
257257 WelsDecoderDefaults (m_pDecContext, &m_pWelsTrace->m_sLogCtx);
@@ -264,7 +264,7 @@ int32_t CWelsDecoder::InitDecoder (const SDecodingParam* pParam) { · 6 unmodified lines
264264 WELS_VERIFY_RETURN_IFNEQ (iRet, cmResultSuccess);
265265
266266 //init decoder
267− WELS_VERIFY_RETURN_PROC_IF (cmInitParaError, WelsInitDecoder (m_pDecContext, &m_pWelsTrace->m_sLogCtx), UninitDecoder())
267+ WELS_VERIFY_RETURN_PROC_IF (cmMallocMemeError, WelsInitDecoder (m_pDecContext, &m_pWelsTrace->m_sLogCtx), UninitDecoder())
268268
269269 return cmResultSuccess;
270270 }

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