]> granicus.if.org Git - openjpeg/commitdiff
[trunk] resets resno_decoded for each tile (fixes issue 399)
authorAntonin Descampe <antonin@gmail.com>
Wed, 22 Oct 2014 13:16:35 +0000 (13:16 +0000)
committerAntonin Descampe <antonin@gmail.com>
Wed, 22 Oct 2014 13:16:35 +0000 (13:16 +0000)
src/lib/openjp2/tcd.c

index 16d7d8f4dfedc427cfa16d4558780d165319e3ff..1720b8efa54edd04041616213c549514c5cbaaf2 100644 (file)
@@ -676,7 +676,7 @@ OPJ_BOOL FUNCTION (     opj_tcd_t *p_tcd,                        \
         /*tile->numcomps = image->numcomps; */                      \
         for(compno = 0; compno < l_tile->numcomps; ++compno) {      \
                 /*fprintf(stderr, "compno = %d/%d\n", compno, l_tile->numcomps);*/                                                                                                                                \
-                                                                    \
+                l_image_comp->resno_decoded = 0;                                                    \
                 /* border of each l_tile component (global) */      \
                 l_tilec->x0 = opj_int_ceildiv(l_tile->x0, (OPJ_INT32)l_image_comp->dx);                                                                                                                                          \
                 l_tilec->y0 = opj_int_ceildiv(l_tile->y0, (OPJ_INT32)l_image_comp->dy);                                                                                                                                          \