diff --git a/source/Lib/EncoderLib/VLCWriter.cpp b/source/Lib/EncoderLib/VLCWriter.cpp index f2f806cdb0e30621a22ae91ab1ee07d2d7f8b520..1b19fdff28b1a4fe6a0f0e9f7b4927d241351781 100644 --- a/source/Lib/EncoderLib/VLCWriter.cpp +++ b/source/Lib/EncoderLib/VLCWriter.cpp @@ -1549,7 +1549,7 @@ void HLSWriter::codeProfileTierLevel ( const ProfileTierLevel* ptl, int maxN WRITE_FLAG( ptl->getSubLayerLevelPresentFlag(i), "sub_layer_level_present_flag[i]" ); } - while (!xIsByteAligned()) + while (!isByteAligned()) { WRITE_FLAG(0, "ptl_alignment_zero_bit"); } diff --git a/source/Lib/EncoderLib/VLCWriter.h b/source/Lib/EncoderLib/VLCWriter.h index b69da6629f1152c306b9baadb53712751d43fb16..a3956f2dd56e4c37cd1200ec41e404a6447b23ba 100644 --- a/source/Lib/EncoderLib/VLCWriter.h +++ b/source/Lib/EncoderLib/VLCWriter.h @@ -89,7 +89,7 @@ protected: #endif void xWriteRbspTrailingBits(); #if JVET_M0101_HLS - bool xIsByteAligned() {return (m_pcBitIf->getNumBitsUntilByteAligned() != 0); } ; + bool isByteAligned() { return (m_pcBitIf->getNumBitsUntilByteAligned() == 0); } ; #endif };