RFC Errata
RFC 7932, "Brotli Compressed Data Format", July 2016
Source of RFC: IETF - NON WORKING GROUPArea Assignment: int
Errata ID: 6977
Status: Reported
Type: Technical
Publication Format(s) : TEXT
Reported By: Sean Bartell
Date Reported: 2022-05-21
Section 9.3 says:
Block type code for next distance block type, appears only if NBLTYPESD >= 2 and the previous distance block count is zero Block count code + extra bits for next distance block count, appears only if NBLTYPESD >= 2 and the previous distance block count is zero
It should say:
Block type code for next distance block type, appears only if NBLTYPESD >= 2 and the previous distance block count is zero and the distance code is not an implicit 0, as indicated by the insert-and-copy length code Block count code + extra bits for next distance block count, appears only if NBLTYPESD >= 2 and the previous distance block count is zero and the distance code is not an implicit 0, as indicated by the insert-and-copy length code
Notes:
Corrected to match section 10 and the reference implementation, which do not update the distance block count when the distance is implicitly 0.