mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-23 15:54:09 +03:00
Merge pull request #915 from cgohlke/patch-3
Fix segfault in TestFileJpeg.test_quality_keep on win-amd64
This commit is contained in:
commit
bf22cdebd1
|
@ -151,7 +151,7 @@ ImagingJpegEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
|
||||||
if (context->quality > 0) {
|
if (context->quality > 0) {
|
||||||
quality = context->quality;
|
quality = context->quality;
|
||||||
}
|
}
|
||||||
for (i = 0; i < sizeof(context->qtables)/sizeof(unsigned int); i++) {
|
for (i = 0; i < sizeof(context->qtables)/sizeof(unsigned int *); i++) {
|
||||||
// TODO: Should add support for none baseline
|
// TODO: Should add support for none baseline
|
||||||
jpeg_add_quant_table(&context->cinfo, i, context->qtables[i],
|
jpeg_add_quant_table(&context->cinfo, i, context->qtables[i],
|
||||||
quality, TRUE);
|
quality, TRUE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user