aboutsummaryrefslogtreecommitdiff
path: root/c/enc/backward_references_hq.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/enc/backward_references_hq.h')
-rw-r--r--c/enc/backward_references_hq.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/enc/backward_references_hq.h b/c/enc/backward_references_hq.h
index 7e3bd7e..02bb278 100644
--- a/c/enc/backward_references_hq.h
+++ b/c/enc/backward_references_hq.h
@@ -40,9 +40,9 @@ typedef struct ZopfliNode {
/* best length to get up to this byte (not including this byte itself)
highest 8 bit is used to reconstruct the length code */
uint32_t length;
- /* distance associated with the length
- highest 7 bit contains distance short code + 1 (or zero if no short code)
- */
+ /* distance associated with the length; highest 5 bits contain distance
+ short code + 1 (or zero if no short code); this way only distances shorter
+ than 128MiB are allowed here */
uint32_t distance;
/* number of literal inserts before this copy */
uint32_t insert_length;