Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2396,6 +2396,8 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn · 2395 unmodified lines | ||
| 2396 | 2396 | pCtx->bFrameFinish = true; //clear frame pending status here! |
| 2397 | 2397 | } else { |
| 2398 | 2398 | if (DecodeFrameConstruction (pCtx, ppDst, pDstInfo)) { |
| 2399 | + if (pCtx->sLastNalHdrExt.sNalUnitHeader.uiNalRefIdc > 0) | |
| 2400 | + pCtx->iErrorCode |= dsNoParamSets; | |
| 2399 | 2401 | pCtx->pDec = NULL; |
| 2400 | 2402 | return false; |
| 2401 | 2403 | } |