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.

This commit is contained in:
Patrick Vogler 2024-01-22 16:51:30 +01:00
parent ecaa8be636
commit 2ca0cd8be1
Signed by: Patrick Vogler
GPG key ID: 5536B08CE82E8509

8
src/tools/bwccmdl.c Executable file → Normal file
View file

@ -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");
}
}