Fix j2k_validate_encode
This commit is contained in:
parent
650df81e09
commit
cbaa2d7d98
|
@ -2733,8 +2733,8 @@ static opj_bool j2k_validate_encode(opj_j2k_t *j2k, opj_image_t *image) {
|
||||||
|
|
||||||
/* PARAMETERS checking */
|
/* PARAMETERS checking */
|
||||||
for (compno=0; compno < image->numcomps; compno++) {
|
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].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].dy >= 1 && j2k->image->comps[compno].dy <= 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
return is_valid;
|
return is_valid;
|
||||||
|
|
Loading…
Reference in New Issue