]> granicus.if.org Git - openjpeg/commitdiff
[trunk] revert r2460 since it breaks ETS-C1P0-p0_03.j2k-decode.
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 26 Feb 2014 12:33:49 +0000 (12:33 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 26 Feb 2014 12:33:49 +0000 (12:33 +0000)
Update issue 225

src/lib/openjp2/j2k.c

index 792c1c9fb46b592b8abb2f3ef5697463819342d2..11d66a18b555bd79f58ac4fb7276582e81787742 100644 (file)
@@ -4481,14 +4481,6 @@ static OPJ_BOOL opj_j2k_read_rgn (opj_j2k_t *p_j2k,
         };
 #endif /* USE_JPWL */
 
-        /* testcase 3635.pdf.asan.77.2930 */
-        if (l_comp_room >= l_nb_comp) {
-                opj_event_msg(p_manager, EVT_ERROR,
-                        "JPWL: bad component number in RGN (%d when there are only %d)\n",
-                        l_comp_room, l_nb_comp);
-                return OPJ_FALSE;
-        }
-
         opj_read_bytes(p_header_data,(OPJ_UINT32 *) (&(l_tcp->tccps[l_comp_no].roishift)),1);   /* SPrgn */
         ++p_header_data;