From 798ea0c0358ffd158b1b8e65ab9e80db3307634f Mon Sep 17 00:00:00 2001 From: Jones Date: Fri, 3 Aug 2018 15:44:57 -0700 Subject: [PATCH] Fix indentation with astyle --- src/bin/jp2/opj_compress.c | 6 +++--- src/bin/jp2/opj_decompress.c | 12 ++++++------ src/bin/jpwl/opj_jpwl_compress.c | 10 +++++----- src/bin/jpwl/opj_jpwl_decompress.c | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/bin/jp2/opj_compress.c b/src/bin/jp2/opj_compress.c index b42950b0..1a8cb53d 100644 --- a/src/bin/jp2/opj_compress.c +++ b/src/bin/jp2/opj_compress.c @@ -658,9 +658,9 @@ static int parse_cmdline_encoder(int argc, char **argv, sprintf(outformat, ".%s", of); img_fol->set_out_format = 1; parameters->cod_format = get_file_format(outformat); - } else { - parameters->cod_format = -1; - } + } else { + parameters->cod_format = -1; + } switch (parameters->cod_format) { case J2K_CFMT: case JP2_CFMT: diff --git a/src/bin/jp2/opj_decompress.c b/src/bin/jp2/opj_decompress.c index 5b78d120..81f85cce 100644 --- a/src/bin/jp2/opj_decompress.c +++ b/src/bin/jp2/opj_decompress.c @@ -663,12 +663,12 @@ int parse_cmdline_decoder(int argc, char **argv, char outformat[50]; char *of = opj_optarg; if (strlen(opj_optarg) < sizeof(outformat)) { - sprintf(outformat, ".%s", of); - img_fol->set_out_format = 1; - parameters->cod_format = get_file_format(outformat); - } else { - parameters->cod_format = -1; - } + sprintf(outformat, ".%s", of); + img_fol->set_out_format = 1; + parameters->cod_format = get_file_format(outformat); + } else { + parameters->cod_format = -1; + } switch (parameters->cod_format) { case PGX_DFMT: img_fol->out_format = "pgx"; diff --git a/src/bin/jpwl/opj_jpwl_compress.c b/src/bin/jpwl/opj_jpwl_compress.c index 643d2cda..182ca42b 100644 --- a/src/bin/jpwl/opj_jpwl_compress.c +++ b/src/bin/jpwl/opj_jpwl_compress.c @@ -768,12 +768,12 @@ static int parse_cmdline_encoder(int argc, char **argv, case 'O': { /* output format */ char outformat[50]; char *of = opj_optarg; - if (strlen(opj_optarg) < sizeof(outformat)) { - sprintf(outformat, ".%s", of); - img_fol->set_out_format = 1; - parameters->cod_format = get_file_format(outformat); + if (strlen(opj_optarg) < sizeof(outformat)) { + sprintf(outformat, ".%s", of); + img_fol->set_out_format = 1; + parameters->cod_format = get_file_format(outformat); } else { - parameters->cod_format = -1; + parameters->cod_format = -1; } switch (parameters->cod_format) { case J2K_CFMT: diff --git a/src/bin/jpwl/opj_jpwl_decompress.c b/src/bin/jpwl/opj_jpwl_decompress.c index 110f98e6..313566d0 100644 --- a/src/bin/jpwl/opj_jpwl_decompress.c +++ b/src/bin/jpwl/opj_jpwl_decompress.c @@ -346,11 +346,11 @@ int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *parameters, char outformat[50]; char *of = opj_optarg; if (strlen(opj_optarg) < sizeof(outformat)) { - sprintf(outformat, ".%s", of); - img_fol->set_out_format = 1; - parameters->cod_format = get_file_format(outformat); + sprintf(outformat, ".%s", of); + img_fol->set_out_format = 1; + parameters->cod_format = get_file_format(outformat); } else { - parameters->cod_format = -1; + parameters->cod_format = -1; } switch (parameters->cod_format) { case PGX_DFMT: