shithub: openh264

Download patch

ref: fd3fde62d9c97dd1aa204d26f427b18184cc2b9e
parent: 0fec22683f252edd582d05c6b7ade4562e9d56c3
parent: 3589351ed762d12ee56cb222b3dab5c163d10768
author: huili2 <huili2@cisco.com>
date: Mon Jan 9 10:44:41 EST 2017

Merge pull request #2639 from ruil2/return

    change return value to match the actual status

--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -251,7 +251,7 @@
     return cmMallocMemeError;
   int32_t iCacheLineSize = 16;   // on chip cache line size in byte
   m_pDecContext->pMemAlign = new CMemoryAlign (iCacheLineSize);
-  WELS_VERIFY_RETURN_PROC_IF (1, (NULL == m_pDecContext->pMemAlign), UninitDecoder())
+  WELS_VERIFY_RETURN_PROC_IF (cmMallocMemeError, (NULL == m_pDecContext->pMemAlign), UninitDecoder())
 
   //fill in default value into context
   WelsDecoderDefaults (m_pDecContext, &m_pWelsTrace->m_sLogCtx);
@@ -264,7 +264,7 @@
   WELS_VERIFY_RETURN_IFNEQ (iRet, cmResultSuccess);
 
   //init decoder
-  WELS_VERIFY_RETURN_PROC_IF (cmInitParaError, WelsInitDecoder (m_pDecContext, &m_pWelsTrace->m_sLogCtx), UninitDecoder())
+  WELS_VERIFY_RETURN_PROC_IF (cmMallocMemeError, WelsInitDecoder (m_pDecContext, &m_pWelsTrace->m_sLogCtx), UninitDecoder())
 
   return cmResultSuccess;
 }