Merge pull request #546 from proski/jpeg-warning

Fix a warning in jpeg compression code with --enable-jpeg
This commit is contained in:
jsorg71 2016-12-15 21:33:25 -08:00 committed by GitHub
commit 870f028692

View File

@ -365,11 +365,14 @@ jpeg_compress(char *in_data, int width, int height,
*(dst8++) = red;
}
for (i = 0; i < e; i++)
if (width > 0)
{
*(dst8++) = blue;
*(dst8++) = green;
*(dst8++) = red;
for (i = 0; i < e; i++)
{
*(dst8++) = blue;
*(dst8++) = green;
*(dst8++) = red;
}
}
}
}