Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 3 files). Show all
Unified · Split
| @@ -303,13 +303,13 @@ int32_t WelsInitMemory (PWelsDecoderContext pCtx) { · 302 unmodified lines | ||
| 303 | 303 | if (MemInitNalList (&pCtx->pAccessUnitList, MAX_NAL_UNIT_NUM_IN_AU) != 0) |
| 304 | 304 | return ERR_INFO_OUT_OF_MEMORY; |
| 305 | 305 | |
| 306 | − if ((pCtx->sRawData.pHead = static_cast<uint8_t*> (WelsMalloc (MAX_ACCESS_UINT_CAPACITY, | |
| 306 | + if ((pCtx->sRawData.pHead = static_cast<uint8_t*> (WelsMalloc (MAX_ACCESS_UNIT_CAPACITY, | |
| 307 | 307 | "pCtx->sRawData->pHead"))) == NULL) { |
| 308 | 308 | return ERR_INFO_OUT_OF_MEMORY; |
| 309 | 309 | } |
| 310 | 310 | pCtx->sRawData.pStartPos = |
| 311 | 311 | pCtx->sRawData.pCurPos = pCtx->sRawData.pHead; |
| 312 | − pCtx->sRawData.pEnd = pCtx->sRawData.pHead + MAX_ACCESS_UINT_CAPACITY; | |
| 312 | + pCtx->sRawData.pEnd = pCtx->sRawData.pHead + MAX_ACCESS_UNIT_CAPACITY; | |
| 313 | 313 | |
| 314 | 314 | pCtx->uiTargetDqId = (uint8_t) - 1; |
| 315 | 315 | pCtx->bEndOfStreamFlag = false; |
| @@ -1968,4 +1968,4 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 1652 unmodified lines | ||
| 1968 | 1968 | return ERR_NONE; |
| 1969 | 1969 | } |
| 1970 | 1970 | |
| 1971 | −} // namespace WelsDec | |
| 1971 | +} // namespace WelsDec | |