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:
parent
ecaa8be636
commit
2ca0cd8be1
1 changed files with 4 additions and 4 deletions
8
src/tools/bwccmdl.c
Executable file → Normal file
8
src/tools/bwccmdl.c
Executable file → Normal 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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue