summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2014-01-23 09:39:02 +0000
committerAntonin Descampe <antonin@gmail.com>2014-01-23 09:39:02 +0000
commitd143f49a662daf26f1259aaef8d944873c920d89 (patch)
treec2b3f3ecac74798d604c51c2167f8e3d2c6f46f1 /src/bin
parent58698b789a641cbbe5c310ce529f262021e72006 (diff)
[trunk] fixed another DCI compliance bug
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/jp2/opj_compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/jp2/opj_compress.c b/src/bin/jp2/opj_compress.c
index 1934bf76..ae41b575 100644
--- a/src/bin/jp2/opj_compress.c
+++ b/src/bin/jp2/opj_compress.c
@@ -661,7 +661,7 @@ static OPJ_BOOL is_cinema_compliant(opj_image_t *image, OPJ_CINEMA_MODE cinema_m
switch (cinema_mode){
case OPJ_CINEMA2K_24:
case OPJ_CINEMA2K_48:
- if (!((image->comps[0].w > 2048) | (image->comps[0].h > 1080))){
+ if (((image->comps[0].w > 2048) | (image->comps[0].h > 1080))){
fprintf(stdout,"JPEG 2000 Profile-3 (2k dc profile) requires:\n"
"width <= 2048 and height <= 1080\n"
"-> Input image size %d x %d is not compliant\n"
@@ -671,7 +671,7 @@ static OPJ_BOOL is_cinema_compliant(opj_image_t *image, OPJ_CINEMA_MODE cinema_m
}
break;
case OPJ_CINEMA4K_24:
- if (!((image->comps[0].w > 4096) | (image->comps[0].h > 2160))){
+ if (((image->comps[0].w > 4096) | (image->comps[0].h > 2160))){
fprintf(stdout,"JPEG 2000 Profile-4 (4k dc profile) requires:\n"
"width <= 4096 and height <= 2160\n"
"-> Image size %d x %d is not compliant\n"