From 05cec00f445c7fb6b662ee36c8dedcde10feea0a Mon Sep 17 00:00:00 2001 From: zhipin <zhipin.deng@bytedance.com> Date: Thu, 9 Jul 2020 18:59:00 +0800 Subject: [PATCH] fix format issues --- source/Lib/DecoderLib/VLCReader.cpp | 5 +++-- source/Lib/EncoderLib/VLCWriter.cpp | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/Lib/DecoderLib/VLCReader.cpp b/source/Lib/DecoderLib/VLCReader.cpp index bc34f7e06..b7e759f89 100644 --- a/source/Lib/DecoderLib/VLCReader.cpp +++ b/source/Lib/DecoderLib/VLCReader.cpp @@ -4281,7 +4281,8 @@ void HLSyntaxReader::parseConstraintInfo(ConstraintInfo *cinfo) uint32_t symbol; #if JVET_S0179_CONDITIONAL_SIGNAL_GCI READ_FLAG(symbol, "gci_present_flag"); cinfo->setGciPresentFlag(symbol ? true : false); - if (cinfo->getGciPresentFlag()) { + if (cinfo->getGciPresentFlag()) + { #endif READ_FLAG(symbol, "general_non_packed_constraint_flag" ); cinfo->setNonPackedConstraintFlag(symbol ? true : false); READ_FLAG(symbol, "general_frame_only_constraint_flag" ); cinfo->setFrameOnlyConstraintFlag(symbol ? true : false); @@ -4420,7 +4421,7 @@ void HLSyntaxReader::parseConstraintInfo(ConstraintInfo *cinfo) READ_FLAG(symbol, "no_cra_constraint_flag"); cinfo->setNoCraConstraintFlag(symbol > 0 ? true : false); READ_FLAG(symbol, "no_gdr_constraint_flag"); cinfo->setNoGdrConstraintFlag(symbol > 0 ? true : false); READ_FLAG(symbol, "no_aps_constraint_flag"); cinfo->setNoApsConstraintFlag(symbol > 0 ? true : false); - #if JVET_S0179_CONDITIONAL_SIGNAL_GCI +#if JVET_S0179_CONDITIONAL_SIGNAL_GCI READ_CODE(8, symbol, "gci_num_reserved_bits"); for (int i = 0; i < symbol; i++) { diff --git a/source/Lib/EncoderLib/VLCWriter.cpp b/source/Lib/EncoderLib/VLCWriter.cpp index a899b0d18..62def389b 100644 --- a/source/Lib/EncoderLib/VLCWriter.cpp +++ b/source/Lib/EncoderLib/VLCWriter.cpp @@ -2472,7 +2472,8 @@ void HLSWriter::codeConstraintInfo ( const ConstraintInfo* cinfo ) { #if JVET_S0179_CONDITIONAL_SIGNAL_GCI WRITE_FLAG(cinfo->getGciPresentFlag(), "gci_present_flag"); - if (cinfo->getGciPresentFlag()) { + if (cinfo->getGciPresentFlag()) + { #endif WRITE_FLAG(cinfo->getNonPackedConstraintFlag(), "general_non_packed_constraint_flag" ); WRITE_FLAG(cinfo->getFrameOnlyConstraintFlag(), "general_frame_only_constraint_flag" ); -- GitLab