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
8686 return cmMallocMemeError;
8787 }
8888
89− WELS_VERIFY_RETURN_PROC_IF (cmInitParaError, WelsInitDecoder (pCtx, pParam->bParseOnly, pLogCtx), UninitDecoder (pCtx));
89+ pCtx->sLogCtx = *pLogCtx;
90+
9091 //check param and update decoder context
9192 pCtx->pParam = (SDecodingParam*) pCtx->pMemAlign->WelsMallocz (sizeof (SDecodingParam), "SDecodingParam");
9293 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);
9495 WELS_VERIFY_RETURN_IFNEQ (iRet, cmResultSuccess);
9596
97+ WELS_VERIFY_RETURN_PROC_IF (cmInitParaError, WelsInitDecoder (pCtx, pLogCtx), UninitDecoder (pCtx));
98+
9699 return cmResultSuccess;
97100 }
98101

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