diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-09-20 01:06:02 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-09-20 01:06:02 +0200 |
| commit | 16b701659d7d9f72aade1d695818a645e2f603a6 (patch) | |
| tree | 258901d52897ecd56678e7edba3917f4485068c7 /src/bin | |
| parent | b8c4b450c4b5bec649463573f57235c4f41c57cd (diff) | |
opj_decompress: add a warning when -d and -t are used together (#693)
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/jp2/opj_decompress.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/jp2/opj_decompress.c b/src/bin/jp2/opj_decompress.c index 479d8382..1473319c 100644 --- a/src/bin/jp2/opj_decompress.c +++ b/src/bin/jp2/opj_decompress.c @@ -1503,6 +1503,14 @@ int main(int argc, char **argv) goto fin; } } else { + if (!(parameters.DA_x0 == 0 && + parameters.DA_y0 == 0 && + parameters.DA_x1 == 0 && + parameters.DA_y1 == 0)) { + if (!(parameters.quiet)) { + fprintf(stderr, "WARNING: -d option ignored when used together with -t\n"); + } + } if (!opj_get_decoded_tile(l_codec, l_stream, image, parameters.tile_index)) { fprintf(stderr, "ERROR -> opj_decompress: failed to decode tile!\n"); |
