Showing the changes to test/decoder/DecUT_ParseSyntax.cpp (1 of 11 files). Show all
Unified · Split
| @@ -86,13 +86,16 @@ int32_t InitDecoder (const SDecodingParam* pParam, PWelsDecoderContext pCtx, SLo · 85 unmodified lines | ||
| 86 | 86 | return cmMallocMemeError; |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | − WELS_VERIFY_RETURN_PROC_IF (cmInitParaError, WelsInitDecoder (pCtx, pParam->bParseOnly, pLogCtx), UninitDecoder (pCtx)); | |
| 89 | + pCtx->sLogCtx = *pLogCtx; | |
| 90 | + | |
| 90 | 91 | //check param and update decoder context |
| 91 | 92 | pCtx->pParam = (SDecodingParam*) pCtx->pMemAlign->WelsMallocz (sizeof (SDecodingParam), "SDecodingParam"); |
| 92 | 93 | WELS_VERIFY_RETURN_PROC_IF (cmMallocMemeError, (NULL == pCtx->pParam), UninitDecoder (pCtx)); |
| 93 | − int32_t iRet = DecoderConfigParam (pCtx, pCtx->pParam); | |
| 94 | + int32_t iRet = DecoderConfigParam (pCtx, pParam); | |
| 94 | 95 | WELS_VERIFY_RETURN_IFNEQ (iRet, cmResultSuccess); |
| 95 | 96 | |
| 97 | + WELS_VERIFY_RETURN_PROC_IF (cmInitParaError, WelsInitDecoder (pCtx, pLogCtx), UninitDecoder (pCtx)); | |
| 98 | + | |
| 96 | 99 | return cmResultSuccess; |
| 97 | 100 | } |
| 98 | 101 | |