From 2ca0cd8be19bdf201cfd73e92bc1607c073728fc Mon Sep 17 00:00:00 2001 From: Patrick Vogler Date: Mon, 22 Jan 2024 16:51:30 +0100 Subject: [PATCH] Bug fixed where comparison between supported and actual output file format during compression would fail due to inclusion of period '.' in comparison. Additionally the decompression output formatting was adapted to the format used for compression output. --- src/tools/bwccmdl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) mode change 100755 => 100644 src/tools/bwccmdl.c diff --git a/src/tools/bwccmdl.c b/src/tools/bwccmdl.c old mode 100755 new mode 100644 index e2fc98e..fc79dd2 --- a/src/tools/bwccmdl.c +++ b/src/tools/bwccmdl.c @@ -2396,7 +2396,7 @@ write_file(bwc_cmdl_arg_node *const args, \*--------------------------------------------------------*/ else { - ext_hash = hash(strrchr(temp->lit_opt[0], '.')); + ext_hash = hash(strrchr(temp->lit_opt[0], '.') + 1); if(ext_hash != hash(data->info.f_ext)) { fprintf(stderr, "o##########################################################o\n"\ @@ -3183,9 +3183,9 @@ main(int argc, if(temp != NULL) { printf("==============================================================\n"); - printf("Decompression Time: %*.2f s\n", 24, field->meter.time.ttl); - printf(" - Wavelet transformation: %*.2f s\n", 24, field->meter.time.wav); - printf(" - Entropy encoding: %*.2f s\n", 24, field->meter.time.ent); + printf(" Decompression Time: %*.2f s\n", 24, field->meter.time.ttl); + printf(" - Wavelet transformation: %*.2f s\n", 24, field->meter.time.wav); + printf(" - Entropy encoding: %*.2f s\n", 24, field->meter.time.ent); printf("==============================================================\n"); } }