mirror of
https://github.com/google/brotli.git
synced 2024-11-23 18:03:24 +08:00
Clarify Section 4.
* If NDIRECT is zero, then the paragraph reads "from 16 to 15", which doesn't make much sense. Thus, add a conditional to avoid this minor oddity.
This commit is contained in:
parent
185cb9eada
commit
2ffe45bd67
@ -845,9 +845,10 @@ not pushed to the ring buffer of last distances.
|
|||||||
If a special distance symbol resolves to a zero or negative value, the
|
If a special distance symbol resolves to a zero or negative value, the
|
||||||
stream should be rejected as invalid.
|
stream should be rejected as invalid.
|
||||||
|
|
||||||
The next NDIRECT distance symbols, from 16 to 15 + NDIRECT, represent
|
If NDIRECT is greater than zero, then the next NDIRECT distance symbols,
|
||||||
distances from 1 to NDIRECT. Neither the distance special symbols, nor
|
from 16 to 15 + NDIRECT, represent distances from 1 to NDIRECT.
|
||||||
the NDIRECT direct distance symbols are followed by any extra bits.
|
Neither the special distance symbols, nor the NDIRECT direct distance
|
||||||
|
symbols are followed by any extra bits.
|
||||||
|
|
||||||
Distance symbols 16 + NDIRECT and greater all have extra bits, where the
|
Distance symbols 16 + NDIRECT and greater all have extra bits, where the
|
||||||
number of extra bits for a distance symbol "dcode" is given by the
|
number of extra bits for a distance symbol "dcode" is given by the
|
||||||
|
Loading…
Reference in New Issue
Block a user