History

remove bParseonly in ctx using that in param, and slightly modify the initialize process of decoder

huili2 committed 11 years ago

Commit 777dbc01 parent b700b6711 files · +133 −86Browse files

Showing the changes to test/decoder/DecUT_ParseSyntax.cpp (1 of 11 files). Show all

Unified · Split

test/decoder/DecUT_ParseSyntax.cpp+5−2
@@ -86,13 +86,16 @@ int32_t InitDecoder (const SDecodingParam* pParam, PWelsDecoderContext pCtx, SLo · 85 unmodified lines
86 return cmMallocMemeError;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 //check param and update decoder context91 //check param and update decoder context
91 pCtx->pParam = (SDecodingParam*) pCtx->pMemAlign->WelsMallocz (sizeof (SDecodingParam), "SDecodingParam");92 pCtx->pParam = (SDecodingParam*) pCtx->pMemAlign->WelsMallocz (sizeof (SDecodingParam), "SDecodingParam");
92 WELS_VERIFY_RETURN_PROC_IF (cmMallocMemeError, (NULL == pCtx->pParam), UninitDecoder (pCtx));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 WELS_VERIFY_RETURN_IFNEQ (iRet, cmResultSuccess);95 WELS_VERIFY_RETURN_IFNEQ (iRet, cmResultSuccess);
95 96
97 WELS_VERIFY_RETURN_PROC_IF (cmInitParaError, WelsInitDecoder (pCtx, pLogCtx), UninitDecoder (pCtx));
98
96 return cmResultSuccess;99 return cmResultSuccess;
97}100}
98 101

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