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

index dc49cd6ec6576ed74f83ac072df9cbe4871d7b95..7eabce5595c949139d09bdcc941c191b1c40529d 100644 (file)
@@ -290,6 +290,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++) {