Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -251,7 +251,7 @@ int32_t CWelsDecoder::InitDecoder (const SDecodingParam* pParam) { · 250 unmodified lines | ||
| 251 | 251 | return cmMallocMemeError; |
| 252 | 252 | int32_t iCacheLineSize = 16; // on chip cache line size in byte |
| 253 | 253 | 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()) | |
| 255 | 255 | |
| 256 | 256 | //fill in default value into context |
| 257 | 257 | WelsDecoderDefaults (m_pDecContext, &m_pWelsTrace->m_sLogCtx); |
| @@ -264,7 +264,7 @@ int32_t CWelsDecoder::InitDecoder (const SDecodingParam* pParam) { · 6 unmodified lines | ||
| 264 | 264 | WELS_VERIFY_RETURN_IFNEQ (iRet, cmResultSuccess); |
| 265 | 265 | |
| 266 | 266 | //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()) | |
| 268 | 268 | |
| 269 | 269 | return cmResultSuccess; |
| 270 | 270 | } |