summaryrefslogtreecommitdiff
path: root/src/bin/jp2/opj_dump.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2014-04-22 21:22:49 +0000
committerAntonin Descampe <antonin@gmail.com>2014-04-22 21:22:49 +0000
commit8d93eae64acd18fac3c856e0a311905359233b96 (patch)
tree8af15444ee62690d89a309712002b82543450341 /src/bin/jp2/opj_dump.c
parent9a3d660d1b3ac71f00369baf183a154a00f9f222 (diff)
[trunk] fixed some warning and errors formatting and add a '-version'
option to opj_compress and opj_decompress binaries
Diffstat (limited to 'src/bin/jp2/opj_dump.c')
-rw-r--r--src/bin/jp2/opj_dump.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/bin/jp2/opj_dump.c b/src/bin/jp2/opj_dump.c
index 6abbec78..3121aa4f 100644
--- a/src/bin/jp2/opj_dump.c
+++ b/src/bin/jp2/opj_dump.c
@@ -298,12 +298,13 @@ static int parse_cmdline_decoder(int argc, char **argv, opj_dparameters_t *param
case JP2_CFMT:
break;
case JPT_CFMT:
- break;
- default:
- fprintf(stderr,
- "!! Unrecognized format for infile : %s [accept only *.j2k, *.jp2, *.jpc or *.jpt] !!\n\n",
- infile);
- return 1;
+ break;
+ default:
+ fprintf(stderr,
+ "[ERROR] Unknown input file format: %s \n"
+ " Known file formats are *.j2k, *.jp2, *.jpc or *.jpt\n",
+ infile);
+ return 1;
}
strncpy(parameters->infile, infile, sizeof(parameters->infile)-1);
}