Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: third_party/libopenjpeg20/0007-jp2_read_cmap.patch

Issue 1536223002: Fix wrong rendering on greyscale images with index colorspace (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/libopenjpeg20/README.pdfium » ('j') | third_party/libopenjpeg20/jp2.c » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 diff --git a/third_party/libopenjpeg20/jp2.c b/third_party/libopenjpeg20/jp2.c
2 index 6e910a9..f3baca5 100644
3 --- a/third_party/libopenjpeg20/jp2.c
4 +++ b/third_party/libopenjpeg20/jp2.c
5 @@ -1194,7 +1194,7 @@ static OPJ_BOOL opj_jp2_read_cmap( opj_jp2_t * jp2,
6
7
8 for(i = 0; i < nr_channels; ++i) {
9 - opj_read_bytes(p_cmap_header_data, &l_value, 2); /* CMP^i */
10 + opj_read_bytes_BE(p_cmap_header_data, &l_value, 2); /* CMP^i */
11 p_cmap_header_data +=2;
12 cmap[i].cmp = (OPJ_UINT16) l_value;
13
OLDNEW
« no previous file with comments | « no previous file | third_party/libopenjpeg20/README.pdfium » ('j') | third_party/libopenjpeg20/jp2.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698