Showing the changes to codec/decoder (1 of 1 file). Show all
Unified · Split
| @@ -2078,6 +2078,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 2077 unmodified lines | |||
| 2078 | "reference picture introduced by this frame is lost during transmission! uiTId: %d", | 2078 | "reference picture introduced by this frame is lost during transmission! uiTId: %d", |
| 2079 | pNalCur->sNalHeaderExt.uiTemporalId); | 2079 | pNalCur->sNalHeaderExt.uiTemporalId); |
| 2080 | if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) { | 2080 | if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) { |
| 2081 | if (pCtx->iTotalNumMbRec == 0) | ||
| 2082 | pCtx->pDec = NULL; | ||
| 2081 | return iRet; | 2083 | return iRet; |
| 2082 | } | 2084 | } |
| 2083 | } | 2085 | } |
| @@ -2093,6 +2095,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 9 unmodified lines | |||
| 2093 | bAllRefComplete = false; | 2095 | bAllRefComplete = false; |
| 2094 | HandleReferenceLostL0 (pCtx, pNalCur); | 2096 | HandleReferenceLostL0 (pCtx, pNalCur); |
| 2095 | if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) { | 2097 | if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) { |
| 2098 | if (pCtx->iTotalNumMbRec == 0) | ||
| 2099 | pCtx->pDec = NULL; | ||
| 2096 | return iRet; | 2100 | return iRet; |
| 2097 | } | 2101 | } |
| 2098 | } | 2102 | } |