mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-16 04:16:35 +03:00
use mode structs in Jpeg2KDecode.c
This commit is contained in:
parent
baa95d6f44
commit
56e1b3c8ef
|
@ -770,7 +770,7 @@ j2k_decode_entry(Imaging im, ImagingCodecState state) {
|
||||||
if (color_space == j2k_unpackers[n].color_space &&
|
if (color_space == j2k_unpackers[n].color_space &&
|
||||||
image->numcomps == j2k_unpackers[n].components &&
|
image->numcomps == j2k_unpackers[n].components &&
|
||||||
(j2k_unpackers[n].subsampling || (subsampling == -1)) &&
|
(j2k_unpackers[n].subsampling || (subsampling == -1)) &&
|
||||||
strcmp(im->mode, j2k_unpackers[n].mode) == 0) {
|
strcmp(im->mode->name, j2k_unpackers[n].mode) == 0) {
|
||||||
unpack = j2k_unpackers[n].unpacker;
|
unpack = j2k_unpackers[n].unpacker;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user