Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 2 files). Show all
Unified · Split
| @@ -1993,7 +1993,11 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 1992 unmodified lines | |||
| 1993 | 1993 | ||
| 1994 | } | 1994 | } |
| 1995 | if (uiNalRefIdc > 0) { | 1995 | if (uiNalRefIdc > 0) { |
| 1996 | WelsMarkAsRef (pCtx); | 1996 | iRet = WelsMarkAsRef (pCtx); |
| 1997 | if (iRet != ERR_NONE) { | ||
| 1998 | pCtx->pDec = NULL; | ||
| 1999 | return iRet; | ||
| 2000 | } | ||
| 1997 | ExpandReferencingPicture (pCtx->pDec, pCtx->sExpandPicFunc.pExpandLumaPicture, | 2001 | ExpandReferencingPicture (pCtx->pDec, pCtx->sExpandPicFunc.pExpandLumaPicture, |
| 1998 | pCtx->sExpandPicFunc.pExpandChromaPicture); | 2002 | pCtx->sExpandPicFunc.pExpandChromaPicture); |
| 1999 | pCtx->pDec = NULL; | 2003 | pCtx->pDec = NULL; |