diff options
author | Alexey Tourbin <alexey.tourbin@gmail.com> | 2017-04-29 12:52:51 (GMT) |
---|---|---|
committer | Alexey Tourbin <alexey.tourbin@gmail.com> | 2017-04-29 13:33:15 (GMT) |
commit | 6cf1f7d758c23d6033d388eabbbb50380c364d2e (patch) | |
tree | 45d6f739827a141cb2df0a59380627f5a7d79aa7 /visual | |
parent | a41df535f709fcb6ccba079dd4d630c4ec4f7151 (diff) | |
download | lz4-6cf1f7d758c23d6033d388eabbbb50380c364d2e.zip lz4-6cf1f7d758c23d6033d388eabbbb50380c364d2e.tar.gz lz4-6cf1f7d758c23d6033d388eabbbb50380c364d2e.tar.bz2 |
lz4hc.c: clamp compression levels > 12
I noticed that, while 'lz4 -12' works fine, 'lz4 -13' does not compress
at all.
$ cat </etc/passwd |wc -c
2565
$ lz4 -12 </etc/passwd |wc -c
1456
$ lz4 -13 </etc/passwd |wc -c
2584
Perhaps the best way to fix this is to clamp the compression level
in the LZ4HC_compress_generic routine.
Diffstat (limited to 'visual')
0 files changed, 0 insertions, 0 deletions