Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all
Unified · Split
| @@ -561,7 +561,7 @@ int32_t InitBsBuffer (PWelsDecoderContext pCtx) { · 560 unmodified lines | |||
| 561 | return ERR_NONE; | 561 | return ERR_NONE; |
| 562 | } | 562 | } |
| 563 | 563 | ||
| 564 | int32_t ExpandBsBuffer (PWelsDecoderContext pCtx, const int kiSrcLen) { | 564 | int32_t ExpandBsBuffer (PWelsDecoderContext pCtx, const int32_t kiSrcLen) { |
| 565 | if (pCtx == NULL) | 565 | if (pCtx == NULL) |
| 566 | return ERR_INFO_INVALID_PTR; | 566 | return ERR_INFO_INVALID_PTR; |
| 567 | int32_t iExpandStepShift = 1; | 567 | int32_t iExpandStepShift = 1; |
| @@ -615,7 +615,7 @@ int32_t ExpandBsBuffer (PWelsDecoderContext pCtx, const int kiSrcLen) { · 47 unmodified lines | |||
| 615 | return ERR_NONE; | 615 | return ERR_NONE; |
| 616 | } | 616 | } |
| 617 | 617 | ||
| 618 | int32_t ExpandBsLenBuffer (PWelsDecoderContext pCtx, const int kiCurrLen) { | 618 | int32_t ExpandBsLenBuffer (PWelsDecoderContext pCtx, const int32_t kiCurrLen) { |
| 619 | SParserBsInfo* pParser = pCtx->pParserBsInfo; | 619 | SParserBsInfo* pParser = pCtx->pParserBsInfo; |
| 620 | if (!pParser->pNalLenInByte) | 620 | if (!pParser->pNalLenInByte) |
| 621 | return ERR_INFO_INVALID_ACCESS; | 621 | return ERR_INFO_INVALID_ACCESS; |