Closed GoogleCodeExporter closed 9 years ago
The problem is in jp2.c in this code fragment:
if (jp2->meth == 1) {
if (p_colr_header_size != 7) {
opj_event_msg(p_manager, EVT_ERROR, "Bad BPCC header box (bad size)\n");
return OPJ_FALSE;
}
opj_read_bytes(p_colr_header_data,&jp2->enumcs ,4); /* EnumCS */
}
The problem is that p_colr_header_size is 35 (I think some additional values
for LAB). If I comment the return
if (jp2->meth == 1) {
if (p_colr_header_size != 7) {
opj_event_msg(p_manager, EVT_ERROR, "Bad BPCC header box (bad size)\n");
// return OPJ_FALSE;
}
opj_read_bytes(p_colr_header_data,&jp2->enumcs ,4); /* EnumCS */
everything works like a charme
Original comment by thomas.f...@gmail.com
on 4 Sep 2013 at 12:56
According to http://www.jpeg.org/public/15444-2annexm.pdf the
p_colr_header_size of 35 is correct for ecumcs=14, because CieLAB has here 7
additional 32 bit values following the enumcs entry.
Original comment by thomas.f...@gmail.com
on 4 Sep 2013 at 1:27
Original comment by mathieu.malaterre
on 25 Feb 2014 at 3:48
This issue has been fixed in r2464. Closing.
Original comment by mathieu.malaterre
on 26 Feb 2014 at 4:35
Original issue reported on code.google.com by
thomas.f...@gmail.com
on 3 Sep 2013 at 1:01Attachments: