Fix test NR-ENC-Bretagne2.ppm-4-encode on linux.
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 20 Dec 2011 17:54:04 +0000 (17:54 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Tue, 20 Dec 2011 17:54:04 +0000 (17:54 +0000)
libopenjpeg/tcd.c

index d5086e6db702a234cedf80484d904b66d0a48a93..2e9e3234771e412041f3248674311ae92e7770f5 100644 (file)
@@ -352,6 +352,7 @@ void tcd_malloc_encode(opj_tcd_t *tcd, opj_image_t * image, opj_cp_t * cp, int c
                                        for (i = 0; i < res->pw * res->ph * 3; i++) {
                                                band->precincts[i].imsbtree = NULL;
                                                band->precincts[i].incltree = NULL;
+                                               band->precincts[i].cblks.enc = NULL;
                                        }
                                        
                                        for (precno = 0; precno < res->pw * res->ph; precno++) {