Fix j2k_validate_encode

This commit is contained in:
mayeut 2015-10-15 15:48:02 +02:00
parent 650df81e09
commit cbaa2d7d98
1 changed files with 2 additions and 2 deletions

View File

@ -2733,8 +2733,8 @@ static opj_bool j2k_validate_encode(opj_j2k_t *j2k, opj_image_t *image) {
/* PARAMETERS checking */
for (compno=0; compno < image->numcomps; compno++) {
is_valid &= (image->comps[compno].dx > 1 && j2k->image->comps[compno].dx < 255);
is_valid &= (image->comps[compno].dy > 1 && j2k->image->comps[compno].dy < 255);
is_valid &= (image->comps[compno].dx >= 1 && j2k->image->comps[compno].dx <= 255);
is_valid &= (image->comps[compno].dy >= 1 && j2k->image->comps[compno].dy <= 255);
}
return is_valid;