Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1722,11 +1722,10 @@ void WelsDqLayerDecodeStart (PWelsDecoderContext pCtx, PNalUnit pCurNal, PSps pS · 1721 unmodified lines | ||
| 1722 | 1722 | pCtx->iFrameNum = pSh->iFrameNum; |
| 1723 | 1723 | } |
| 1724 | 1724 | |
| 1725 | −int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, const bool kbFirstSlice, int32_t iPoc) { | |
| 1725 | +int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, int32_t iPoc) { | |
| 1726 | 1726 | int32_t iRet = ERR_NONE; |
| 1727 | − | |
| 1728 | 1727 | iRet = WelsInitRefList (pCtx, iPoc); |
| 1729 | − if ((pCtx->eSliceType != I_SLICE && pCtx->eSliceType != SI_SLICE) ) { | |
| 1728 | + if ((pCtx->eSliceType != I_SLICE && pCtx->eSliceType != SI_SLICE)) { | |
| 1730 | 1729 | iRet = WelsReorderRefList (pCtx); |
| 1731 | 1730 | } |
| 1732 | 1731 | |
| @@ -1901,7 +1900,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 168 unmodified lines | ||
| 1901 | 1900 | } |
| 1902 | 1901 | |
| 1903 | 1902 | if (iCurrIdD == kuiDependencyIdMax && iCurrIdQ == BASE_QUALITY_ID) { |
| 1904 | − iRet = InitRefPicList (pCtx, uiNalRefIdc, bFreshSliceAvailable, pSh->iPicOrderCntLsb); | |
| 1903 | + iRet = InitRefPicList (pCtx, uiNalRefIdc, pSh->iPicOrderCntLsb); | |
| 1905 | 1904 | if (iRet) { |
| 1906 | 1905 | HandleReferenceLost (pCtx, pNalCur); |
| 1907 | 1906 | WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, |