diff --git a/source/Lib/DecoderLib/DecLib.cpp b/source/Lib/DecoderLib/DecLib.cpp index 006550aeedd2b457ad4f078a6c7a6ef79ee1d30c..a542e91c70ce64c9d25471017e194049e99c2081 100644 --- a/source/Lib/DecoderLib/DecLib.cpp +++ b/source/Lib/DecoderLib/DecLib.cpp @@ -2052,6 +2052,19 @@ bool DecLib::decode(InputNALUnit& nalu, int& iSkipFrame, int& iPOCLastDisplay) case NAL_UNIT_SPS: xDecodeSPS( nalu ); +#if JVET_P0185 + { + const SPS* pcSPS = m_parameterSetManager.getActiveSPS(); + if (0 == pcSPS->getVPSId()) + { + if (m_vps != nullptr) + { + delete m_vps; + } + m_vps = new VPS(); + } + } +#endif return false; case NAL_UNIT_PPS: