diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2004-07-06 07:50:05 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2004-07-06 07:50:05 +0000 |
| commit | 3cb27c39126503a4c492022a988d442f56870a3c (patch) | |
| tree | 0a28f2261a5686bb04ec4ab8395249b0f6784724 /codec/image_to_j2k.c | |
| parent | 71e60bf86c1c336dd58d8b302976d3009bad4a34 (diff) | |
Fixed bug for rate option
Diffstat (limited to 'codec/image_to_j2k.c')
| -rw-r--r-- | codec/image_to_j2k.c | 2 |
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; |
