fixed a bug in mj2.c that prevented extract_j2k_from_mj2 to build properly. Patch from winfried
This commit is contained in:
parent
453af11e2c
commit
72b6fdb04b
3
CHANGES
3
CHANGES
|
@ -5,6 +5,9 @@ What's New for OpenJPEG
|
|||
! : changed
|
||||
+ : added
|
||||
|
||||
October 08, 2010
|
||||
* [antonin] fixed a bug in mj2.c that prevented extract_j2k_from_mj2 to build properly. Patch from winfried.
|
||||
|
||||
October 04, 2010
|
||||
+ [antonin] Added files to let people build openjpeg with 'configure' tools
|
||||
+ [antonin] Added makefiles to let people manually build openjpeg on *nix platforms
|
||||
|
|
|
@ -1101,6 +1101,7 @@ int mj2_read_smj2(opj_image_t * img, mj2_tk_t * tk, opj_cio_t *cio)
|
|||
mj2_box_t box;
|
||||
mj2_box_t box2;
|
||||
int i;
|
||||
struct extension ext;
|
||||
|
||||
mj2_read_boxhdr(&box, cio);
|
||||
|
||||
|
@ -1158,8 +1159,9 @@ int mj2_read_smj2(opj_image_t * img, mj2_tk_t * tk, opj_cio_t *cio)
|
|||
tk->or_fieldorder = 0;
|
||||
|
||||
cio_skip(cio,2); /* Pre-defined = -1 */
|
||||
memset(&ext, 0, sizeof(struct extension));
|
||||
|
||||
if (!jp2_read_jp2h(&tk->jp2_struct, cio, NULL)) {
|
||||
if (!jp2_read_jp2h(&tk->jp2_struct, cio, &ext)) {
|
||||
opj_event_msg(tk->cinfo, EVT_ERROR, "Error reading JP2H Box\n");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue