ISO/IEC 10918-1 : 1993(E)
Any trailing zero bytes already written to the entropy-coded segment and not preceded by a X'FF' may, optionally, be
discarded. This is done in the Discard_final_zeros procedure. Stuffed zero bytes shall not be discarded.
Entropy coded segments are always followed by a marker. For this reason, the final zero bits needed to complete decoding
shall not be included in the entropy coded segment. Instead, when the decoder encounters a marker, zero bits shall be
supplied to the decoding procedure until decoding is complete. This convention guarantees that when a DNL marker is
used, the decoder will intercept it in time to correctly terminate the decoding procedure.
C = T
T = T + X'8000'
T = C + A 1
T = T AND
T < C
Figure D.14 Clear_final_bits procedure in Flush
Figure D.14 [D52], = 14 cm = 547.%
CCITT Rec. T.81 (1992 E)