From e6b1d88a71cb0ef6ecd7f0b76cda8182a6b62270 Mon Sep 17 00:00:00 2001 From: FANGJUN PU <fpu@dolby.com> Date: Fri, 17 Apr 2020 21:25:48 -0700 Subject: [PATCH] Initiate SDH flage in SPS. --- source/Lib/DecoderLib/VLCReader.cpp | 4 ++++ source/Lib/EncoderLib/EncLib.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/source/Lib/DecoderLib/VLCReader.cpp b/source/Lib/DecoderLib/VLCReader.cpp index 12fb500dc..a2b9028cc 100644 --- a/source/Lib/DecoderLib/VLCReader.cpp +++ b/source/Lib/DecoderLib/VLCReader.cpp @@ -2363,6 +2363,10 @@ void HLSyntaxReader::parseSPS(SPS* pcSPS) { READ_FLAG(uiCode, "sps_sign_data_hiding_enabled_flag"); pcSPS->setSignDataHidingEnabledFlag(uiCode); } + else + { + pcSPS->setSignDataHidingEnabledFlag(false); + } #endif #if JVET_Q0246_VIRTUAL_BOUNDARY_ENABLE_FLAG READ_FLAG( uiCode, "sps_virtual_boundaries_enabled_flag" ); pcSPS->setVirtualBoundariesEnabledFlag( uiCode != 0 ); diff --git a/source/Lib/EncoderLib/EncLib.cpp b/source/Lib/EncoderLib/EncLib.cpp index f6585d391..e7edfffa8 100644 --- a/source/Lib/EncoderLib/EncLib.cpp +++ b/source/Lib/EncoderLib/EncLib.cpp @@ -1580,6 +1580,10 @@ void EncLib::xInitSPS( SPS& sps, VPS& vps ) { sps.setSignDataHidingEnabledFlag( m_SignDataHidingEnabledFlag ); } + else + { + sps.setSignDataHidingEnabledFlag(false); + } #endif #if JVET_Q0246_VIRTUAL_BOUNDARY_ENABLE_FLAG sps.setVirtualBoundariesEnabledFlag( m_virtualBoundariesEnabledFlag ); -- GitLab