You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
479 B
15 lines
479 B
13 years ago
|
--- a/fitz/image_jpx.c
|
||
|
+++ b/fitz/image_jpx.c
|
||
|
@@ -50,8 +50,11 @@ fz_load_jpx(fz_context *ctx, unsigned char *data, int size, fz_colorspace *defcs
|
||
|
evtmgr.info_handler = fz_opj_info_callback;
|
||
|
|
||
|
opj_set_default_decoder_parameters(¶ms);
|
||
|
+
|
||
|
+#ifdef OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG
|
||
|
if (indexed)
|
||
|
params.flags |= OPJ_DPARAMETERS_IGNORE_PCLR_CMAP_CDEF_FLAG;
|
||
|
+#endif
|
||
|
|
||
|
info = opj_create_decompress(format);
|
||
|
opj_set_event_mgr((opj_common_ptr)info, &evtmgr, ctx);
|