Move the declaration to the beginning of scope to make vs happy

This commit is contained in:
Stephen Arthur 2016-05-22 19:13:19 -07:00
parent 67a243d82d
commit 0bc4423487

View File

@ -148,10 +148,10 @@ ImagingJpegEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
if (context->qtables) { if (context->qtables) {
int i; int i;
int quality = 100; int quality = 100;
int last_q = 0;
if (context->quality > 0) { if (context->quality > 0) {
quality = context->quality; quality = context->quality;
} }
int last_q;
for (i = 0; i < context->qtablesLen; i++) { for (i = 0; i < context->qtablesLen; 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 * DCTSIZE2], jpeg_add_quant_table(&context->cinfo, i, &context->qtables[i * DCTSIZE2],