This reverts commit 27172bafd7ff2cc80b08768a32a23470f3d6d3fd, reversing changes made to 24916a652ee5d3e36d931c222df20966f7c158fa.
Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 11 files). Show all
Unified · Split
| @@ -317,7 +317,7 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade · 316 unmodified lines | ||
| 317 | 317 | iNalSize -= NAL_UNIT_HEADER_EXT_SIZE; |
| 318 | 318 | *pConsumedBytes += NAL_UNIT_HEADER_EXT_SIZE; |
| 319 | 319 | |
| 320 | − if (pCtx->pParam->bParseOnly) { | |
| 320 | + if (pCtx->bParseOnly) { | |
| 321 | 321 | pCurNal->sNalData.sVclNal.pNalPos = pSavedData->pCurPos; |
| 322 | 322 | int32_t iTrailingZeroByte = 0; |
| 323 | 323 | while (pSrcNal[iSrcNalLen - iTrailingZeroByte - 1] == 0x0) //remove final trailing 0 bytes |
| @@ -346,7 +346,7 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade · 22 unmodified lines | ||
| 346 | 346 | pSavedData->pCurPos += iActualLen - iOffset; |
| 347 | 347 | } |
| 348 | 348 | } else { |
| 349 | − if (pCtx->pParam->bParseOnly) { | |
| 349 | + if (pCtx->bParseOnly) { | |
| 350 | 350 | pCurNal->sNalData.sVclNal.pNalPos = pSavedData->pCurPos; |
| 351 | 351 | int32_t iTrailingZeroByte = 0; |
| 352 | 352 | while (pSrcNal[iSrcNalLen - iTrailingZeroByte - 1] == 0x0) //remove final trailing 0 bytes |
| @@ -1113,7 +1113,7 @@ int32_t ParseSps (PWelsDecoderContext pCtx, PBitStringAux pBsAux, int32_t* pPicW · 760 unmodified lines | ||
| 1113 | 1113 | WELS_READ_VERIFY (BsGetOneBit (pBs, &uiCode)); //vui_parameters_present_flag |
| 1114 | 1114 | pSps->bVuiParamPresentFlag = !!uiCode; |
| 1115 | 1115 | |
| 1116 | − if (pCtx->pParam->bParseOnly) { | |
| 1116 | + if (pCtx->bParseOnly) { | |
| 1117 | 1117 | if (kSrcNalLen >= SPS_PPS_BS_SIZE - 4) { //sps bs exceeds! |
| 1118 | 1118 | pCtx->iErrorCode |= dsOutOfMemory; |
| 1119 | 1119 | return GENERATE_ERROR_NO (ERR_LEVEL_PARAM_SETS, ERR_INFO_OUT_OF_MEMORY); |
| @@ -1416,7 +1416,7 @@ int32_t ParsePps (PWelsDecoderContext pCtx, PPps pPpsList, PBitStringAux pBsAux, · 296 unmodified lines | ||
| 1416 | 1416 | memcpy (&pCtx->sPpsBuffer[uiPpsId], pPps, sizeof (SPps)); |
| 1417 | 1417 | pCtx->bPpsAvailFlags[uiPpsId] = true; |
| 1418 | 1418 | } |
| 1419 | − if (pCtx->pParam->bParseOnly) { | |
| 1419 | + if (pCtx->bParseOnly) { | |
| 1420 | 1420 | if (kSrcNalLen >= SPS_PPS_BS_SIZE - 4) { //pps bs exceeds |
| 1421 | 1421 | pCtx->iErrorCode |= dsOutOfMemory; |
| 1422 | 1422 | return GENERATE_ERROR_NO (ERR_LEVEL_PARAM_SETS, ERR_INFO_OUT_OF_MEMORY); |