mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Fixed a Python 3 specific crash.
This commit is contained in:
parent
fea6811af0
commit
831216f609
|
@ -327,7 +327,7 @@ j2k_encode_entry(Imaging im, ImagingCodecState state,
|
||||||
tile_height = im->ysize;
|
tile_height = im->ysize;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PySequence_Check(context->quality_layers)) {
|
if (context->quality_layers && PySequence_Check(context->quality_layers)) {
|
||||||
Py_ssize_t len = PySequence_Length(context->quality_layers);
|
Py_ssize_t len = PySequence_Length(context->quality_layers);
|
||||||
Py_ssize_t n;
|
Py_ssize_t n;
|
||||||
float *pq;
|
float *pq;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user