summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--codec/image_to_j2k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/codec/image_to_j2k.c b/codec/image_to_j2k.c
index cbe329b3..e7aae553 100644
--- a/codec/image_to_j2k.c
+++ b/codec/image_to_j2k.c
@@ -581,7 +581,7 @@ int main(int argc, char **argv)
return 1;
}
- if (!(cp.disto_alloc ^ cp.fixed_alloc ^ cp.fixed_quality)) {
+ if ((cp.disto_alloc || cp.fixed_alloc || cp.fixed_quality)&&(!(cp.disto_alloc ^ cp.fixed_alloc ^ cp.fixed_quality))) {
fprintf(stderr,
"Error: options -r -q and -f can not be used together !!\n");
return 1;