diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-05-29 13:54:21 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-05-29 13:54:21 +0000 |
| commit | 835bf5357fe9da6cb100b0331841391d19f8520a (patch) | |
| tree | 841f0998abe012e02f374c20982d95040f5e9752 /libopenjpeg | |
| parent | 8a279881d493dd7e803a6c06df74d18907100804 (diff) | |
[1.5] The two files in Issue145 have a precision < 8-bit:
therefore 'jp2_read_pclr' must be changed.
j2k_to_image fails to create RGB/RGBA images with a
precision < 8-bit: therefore 'imagetopng' must be
changed.
Update issue 145
Diffstat (limited to 'libopenjpeg')
| -rw-r--r-- | libopenjpeg/jp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopenjpeg/jp2.c b/libopenjpeg/jp2.c index 5ae114c3..9a4023ab 100644 --- a/libopenjpeg/jp2.c +++ b/libopenjpeg/jp2.c @@ -469,7 +469,7 @@ static opj_bool jp2_read_pclr(opj_jp2_t *jp2, opj_cio_t *cio, for(i = 0; i < nr_channels; ++i) { /* Cji */ - *entries++ = cio_read(cio, channel_size[i]>>3); + *entries++ = cio_read(cio, (channel_size[i]+7)>>3); } } |
