update spacing

This commit is contained in:
Matthew Sheby 2021-10-21 11:44:34 -07:00
parent 4b3b978352
commit 4a1e327415
2 changed files with 4 additions and 3 deletions

View File

@ -1506,7 +1506,8 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters)
scale_component(&(image->comps[j]), 12);
}
} else if ((parameters->target_bitdepth > 0) && (parameters->target_bitdepth != tiBps)) {
} else if ((parameters->target_bitdepth > 0) &&
(parameters->target_bitdepth != tiBps)) {
for (j = 0; j < numcomps; ++j) {
scale_component(&(image->comps[j]), parameters->target_bitdepth);
}

View File

@ -918,8 +918,8 @@ static int parse_cmdline_encoder(int argc, char **argv,
char *s = opj_optarg;
sscanf(s, "%u", &target_bitdepth);
if (target_bitdepth == 0) {
fprintf(stderr, "Target bitdepth must be at least 1 bit.\n");
return 1;
fprintf(stderr, "Target bitdepth must be at least 1 bit.\n");
return 1;
}
parameters->target_bitdepth = target_bitdepth;
}