Fixed bug for rate option
authorFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>
Tue, 6 Jul 2004 07:50:05 +0000 (07:50 +0000)
committerFrancois-Olivier Devaux <fodevaux@users.noreply.github.com>
Tue, 6 Jul 2004 07:50:05 +0000 (07:50 +0000)
codec/image_to_j2k.c

index cbe329b3b2d46f28760c9ca40547499cd360b739..e7aae553b9f67b877b7534b32fb850f9628f2054 100644 (file)
@@ -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;