Skip to content

Commit

Permalink
Move the declaration to the beginning of scope to make vs happy
Browse files Browse the repository at this point in the history
  • Loading branch information
thebostik committed May 23, 2016
1 parent 67a243d commit 0bc4423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libImaging/JpegEncode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 0bc4423

Please sign in to comment.