OLD | NEW |
(Empty) | |
| 1 diff -u a/jp2.c b/jp2.c |
| 2 --- a/jp2.c |
| 3 +++ b/jp2.c |
| 4 @@ -1429,7 +1429,7 @@ |
| 5 /* Part 1, I.5.3.4: Either both or none : */ |
| 6 if( !jp2->color.jp2_pclr->cmap) |
| 7 opj_jp2_free_pclr(&(jp2->color)); |
| 8 - else |
| 9 + else if (p_image->pdfium_use_colorspace) |
| 10 opj_jp2_apply_pclr(p_image, &(jp2->color)); |
| 11 } |
| 12 |
| 13 diff -u a/openjpeg.h b/openjpeg.h |
| 14 --- a/openjpeg.h |
| 15 +++ b/openjpeg.h |
| 16 @@ -677,6 +677,9 @@ |
| 17 OPJ_BYTE *icc_profile_buf; |
| 18 /** size of ICC profile */ |
| 19 OPJ_UINT32 icc_profile_len; |
| 20 + |
| 21 + /** Whether to apply PCLR or not */ |
| 22 + OPJ_BOOL pdfium_use_colorspace; |
| 23 } opj_image_t; |
| 24 |
| 25 |
OLD | NEW |