summaryrefslogtreecommitdiffstats
path: root/lz4c.c
diff options
context:
space:
mode:
Diffstat (limited to 'lz4c.c')
-rw-r--r--lz4c.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lz4c.c b/lz4c.c
index b6fc0ee..65a7ea2 100644
--- a/lz4c.c
+++ b/lz4c.c
@@ -378,7 +378,7 @@ int compress_file_blockDependency(char* input_filename, char* output_filename, i
char* out_buff;
FILE* finput;
FILE* foutput;
- int displayLevel = (compressionlevel>0);
+ int displayLevel = ((compressionlevel>0) && (!silence)) || (verbose);
clock_t start, end;
unsigned int blockSize, inputBufferSize;
size_t sizeCheck, header_size;
@@ -390,6 +390,11 @@ int compress_file_blockDependency(char* input_filename, char* output_filename, i
switch (compressionlevel)
{
case 0 :
+ initFunction = LZ4_create;
+ compressionFunction = LZ4_compress_limitedOutput_continue;
+ translateFunction = LZ4_slideInputBuffer;
+ freeFunction = LZ4_free;
+ break;
case 1 :
default:
initFunction = LZ4_createHC;