mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Move the declaration to the beginning of scope to make vs happy
This commit is contained in:
parent
67a243d82d
commit
0bc4423487
|
@ -148,10 +148,10 @@ ImagingJpegEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
|
|||
if (context->qtables) {
|
||||
int i;
|
||||
int quality = 100;
|
||||
int last_q = 0;
|
||||
if (context->quality > 0) {
|
||||
quality = context->quality;
|
||||
}
|
||||
int last_q;
|
||||
for (i = 0; i < context->qtablesLen; i++) {
|
||||
// TODO: Should add support for none baseline
|
||||
jpeg_add_quant_table(&context->cinfo, i, &context->qtables[i * DCTSIZE2],
|
||||
|
|
Loading…
Reference in New Issue
Block a user