diff options
Diffstat (limited to 'deflate_medium.c')
-rw-r--r-- | deflate_medium.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/deflate_medium.c b/deflate_medium.c index 8283a08..07ce71f 100644 --- a/deflate_medium.c +++ b/deflate_medium.c @@ -292,6 +292,7 @@ ZLIB_INTERNAL block_state deflate_medium(deflate_state *s, int flush) { } /* short matches with a very long distance are rarely a good idea encoding wise */ + /* distances 8193–16384 take 12 extra bits, distances 16385–32768 take 13 extra bits */ if (next_match.match_length == 3 && (next_match.strstart - next_match.match_start) > 12000) next_match.match_length = 1; s->strstart = current_match.strstart; |