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

This commit is contained in:
huili2
2015-10-27 16:12:08 +08:00
parent b700b67bba
commit 777dbc09d4
11 changed files with 133 additions and 86 deletions

View File

@@ -83,7 +83,7 @@ PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const
iLumaSize = iPicWidth * iPicHeight;
iChromaSize = iPicChromaWidth * iPicChromaHeight;
if (pCtx->bParseOnly) {
if (pCtx->pParam->bParseOnly) {
pPic->pBuffer[0] = pPic->pBuffer[1] = pPic->pBuffer[2] = NULL;
pPic->pData[0] = pPic->pData[1] = pPic->pData[2] = NULL;
pPic->iLinesize[0] = iPicWidth;