]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix lz4 compression_level check 669/head
authordosomder <dosomder@users.noreply.github.com>
Sat, 12 Mar 2016 22:40:36 +0000 (23:40 +0100)
committerdosomder <dosomder@users.noreply.github.com>
Sat, 12 Mar 2016 22:57:43 +0000 (23:57 +0100)
Match this check with the rest of the file where HC is level 3 and up

libarchive/archive_write_add_filter_lz4.c

index 15a99b095653be4369162a36b90e2ed65db0289c..1d0ab8c56a16dc7cc673fa73c6c19ab16521b62f 100644 (file)
@@ -498,7 +498,7 @@ drive_compressor_independence(struct archive_write_filter *f, const char *p,
        unsigned int outsize;
 
 #ifdef HAVE_LZ4HC_H
-       if (data->compression_level >= 4)
+       if (data->compression_level >= 3)
 #if LZ4_VERSION_MAJOR >= 1 && LZ4_VERSION_MINOR >= 7
                outsize = LZ4_compress_HC(p, data->out + 4,
                     (int)length, (int)data->block_size,