diff --git a/source/Lib/CommonLib/Slice.cpp b/source/Lib/CommonLib/Slice.cpp index c2b43a4fbae6c5154503ee0372f9d6dfc99aed16..c6762339f21da316992f21863b0bc8e2dde981cc 100644 --- a/source/Lib/CommonLib/Slice.cpp +++ b/source/Lib/CommonLib/Slice.cpp @@ -585,15 +585,13 @@ int Slice::getNumRpsCurrTempList() const numRpsCurrTempList++; } } -#if JVET_M0483_IBC - if (getSPS()->getIBCFlag()) -#else - if (getSPS()->getIBCMode()) -#endif +#if JVET_M0483_IBC==0 + if (getSPS()->getSpsNext().getIBCMode()) { return numRpsCurrTempList + 1; } else +#endif return numRpsCurrTempList; }