[1.5] Fix r1727 (Issue 156) to compile on compilers where false is not defined.
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 11 Jul 2012 15:00:55 +0000 (15:00 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 11 Jul 2012 15:00:55 +0000 (15:00 +0000)
libopenjpeg/j2k.c

index ec0c29b29d076b6d4a13e004d5d394f54bb2e6da..093d3c5c9b129fb0816afad6493224e5077fe5e9 100644 (file)
@@ -1602,7 +1602,7 @@ static void j2k_write_eoc(opj_j2k_t *j2k) {
 
 static void j2k_read_eoc(opj_j2k_t *j2k) {
        int i, tileno;
-       opj_bool success = false;
+       opj_bool success = OPJ_FALSE;
 
        /* if packets should be decoded */
        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);
                        }
                        else
-                               success = false;
+                               success = OPJ_FALSE;
                        if (success == OPJ_FALSE) {
                                j2k->state |= J2K_STATE_ERR;
                                break;