Merge pull request #546 from proski/jpeg-warning

Fix a warning in jpeg compression code with --enable-jpeg
master
jsorg71 8 years ago committed by GitHub
commit 870f028692

@ -365,6 +365,8 @@ jpeg_compress(char *in_data, int width, int height,
*(dst8++) = red;
}
if (width > 0)
{
for (i = 0; i < e; i++)
{
*(dst8++) = blue;
@ -373,6 +375,7 @@ jpeg_compress(char *in_data, int width, int height,
}
}
}
}
else
{
g_writeln("bpp wrong %d", bpp);

Loading…
Cancel
Save