summaryrefslogtreecommitdiff
path: root/third_party/libopenjpeg20/jp2.c
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-09-02 13:52:01 -0700
committerLei Zhang <thestig@chromium.org>2015-09-02 13:52:01 -0700
commit870b5b6793fa261f0c6f31f026010d2d715968bf (patch)
tree951031547b20d09a3e483db9ea3de0cf508b6989 /third_party/libopenjpeg20/jp2.c
parent097297325e0d3d00556d67885547750a2e9d4b32 (diff)
downloadpdfium-870b5b6793fa261f0c6f31f026010d2d715968bf.tar.xz
Reapply Foxit's libopenjpeg modifications.
They were lost in commit d53e6fd. BUG=pdfium:168 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1196523002 .
Diffstat (limited to 'third_party/libopenjpeg20/jp2.c')
-rw-r--r--third_party/libopenjpeg20/jp2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/libopenjpeg20/jp2.c b/third_party/libopenjpeg20/jp2.c
index aafbe199d6..08b195304d 100644
--- a/third_party/libopenjpeg20/jp2.c
+++ b/third_party/libopenjpeg20/jp2.c
@@ -1429,7 +1429,7 @@ OPJ_BOOL opj_jp2_decode(opj_jp2_t *jp2,
/* Part 1, I.5.3.4: Either both or none : */
if( !jp2->color.jp2_pclr->cmap)
opj_jp2_free_pclr(&(jp2->color));
- else
+ else if (p_image->pdfium_use_colorspace)
opj_jp2_apply_pclr(p_image, &(jp2->color));
}