projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8c4b45
)
opj_decompress: add a warning when -d and -t are used together (#693)
1008/head
author
Even Rouault
<even.rouault@spatialys.com>
Tue, 19 Sep 2017 23:06:02 +0000
(
01:06
+0200)
committer
Even Rouault
<even.rouault@spatialys.com>
Tue, 19 Sep 2017 23:06:02 +0000
(
01:06
+0200)
src/bin/jp2/opj_decompress.c
patch
|
blob
|
history
diff --git
a/src/bin/jp2/opj_decompress.c
b/src/bin/jp2/opj_decompress.c
index 479d83822eee5f715d8396e01f5e999051e8eb78..1473319c66835d5201f047ace724fb5a1beb4588 100644
(file)
--- 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");