From dfc2b1f7cbfdf2248ef971dac728f029ed49c390 Mon Sep 17 00:00:00 2001 From: Daniel <daniel.luo@interdigital.com> Date: Sat, 6 Apr 2019 17:18:22 -0400 Subject: [PATCH] Fixed bug that cause enc/dec mismatch when SMVD option is 0. --- source/Lib/DecoderLib/DecLib.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Lib/DecoderLib/DecLib.cpp b/source/Lib/DecoderLib/DecLib.cpp index 316f5c256e..e64ddde6d8 100644 --- a/source/Lib/DecoderLib/DecLib.cpp +++ b/source/Lib/DecoderLib/DecLib.cpp @@ -1210,7 +1210,11 @@ bool DecLib::xDecodeSlice(InputNALUnit &nalu, int &iSkipFrame, int iPOCLastDispl pcSlice->setCheckLDC(bLowDelay); } +#if JVET_N0235_SMVD_SPS + if (pcSlice->getSPS()->getUseSMVD() && pcSlice->getCheckLDC() == false && pcSlice->getMvdL1ZeroFlag() == false) +#else if ( pcSlice->getCheckLDC() == false && pcSlice->getMvdL1ZeroFlag() == false ) +#endif { int currPOC = pcSlice->getPOC(); -- GitLab