Commit 23dbb913 authored by Karsten Suehring's avatar Karsten Suehring

fix byte alignment for PTL also at encoder

parent bd6a3e16
......@@ -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");
}
......
......@@ -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
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment