opj_decompress: add a warning when -d and -t are used together (#693)
This commit is contained in:
parent
b8c4b450c4
commit
16b701659d
|
@ -1503,6 +1503,14 @@ int main(int argc, char **argv)
|
||||||
goto fin;
|
goto fin;
|
||||||
}
|
}
|
||||||
} else {
|
} 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)) {
|
if (!opj_get_decoded_tile(l_codec, l_stream, image, parameters.tile_index)) {
|
||||||
fprintf(stderr, "ERROR -> opj_decompress: failed to decode tile!\n");
|
fprintf(stderr, "ERROR -> opj_decompress: failed to decode tile!\n");
|
||||||
|
|
Loading…
Reference in New Issue