[1.5] Fix r1727 (Issue 156) to compile on compilers where false is not defined.
This commit is contained in:
parent
8b5f815925
commit
6b5bbc2645
|
@ -1602,7 +1602,7 @@ static void j2k_write_eoc(opj_j2k_t *j2k) {
|
||||||
|
|
||||||
static void j2k_read_eoc(opj_j2k_t *j2k) {
|
static void j2k_read_eoc(opj_j2k_t *j2k) {
|
||||||
int i, tileno;
|
int i, tileno;
|
||||||
opj_bool success = false;
|
opj_bool success = OPJ_FALSE;
|
||||||
|
|
||||||
/* if packets should be decoded */
|
/* if packets should be decoded */
|
||||||
if (j2k->cp->limit_decoding != DECODE_ALL_BUT_PACKETS) {
|
if (j2k->cp->limit_decoding != DECODE_ALL_BUT_PACKETS) {
|
||||||
|
@ -1619,7 +1619,7 @@ static void j2k_read_eoc(opj_j2k_t *j2k) {
|
||||||
tcd_free_decode_tile(tcd, i);
|
tcd_free_decode_tile(tcd, i);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
success = false;
|
success = OPJ_FALSE;
|
||||||
if (success == OPJ_FALSE) {
|
if (success == OPJ_FALSE) {
|
||||||
j2k->state |= J2K_STATE_ERR;
|
j2k->state |= J2K_STATE_ERR;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue