Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1724,9 +1724,9 @@ void WelsDqLayerDecodeStart (PWelsDecoderContext pCtx, PNalUnit pCurNal, PSps pS · 1723 unmodified lines | ||
| 1724 | 1724 | |
| 1725 | 1725 | int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, const bool kbFirstSlice, int32_t iPoc) { |
| 1726 | 1726 | int32_t iRet = ERR_NONE; |
| 1727 | − if (kbFirstSlice) | |
| 1728 | − iRet = WelsInitRefList (pCtx, iPoc); | |
| 1729 | − if ((pCtx->eSliceType != I_SLICE && pCtx->eSliceType != SI_SLICE) && kbFirstSlice) { | |
| 1727 | + | |
| 1728 | + iRet = WelsInitRefList (pCtx, iPoc); | |
| 1729 | + if ((pCtx->eSliceType != I_SLICE && pCtx->eSliceType != SI_SLICE) ) { | |
| 1730 | 1730 | iRet = WelsReorderRefList (pCtx); |
| 1731 | 1731 | } |
| 1732 | 1732 | |