Fix support for some JPEG images
This commit is contained in:
@@ -249,7 +249,7 @@ namespace lime {
|
|||||||
if (decodeData) {
|
if (decodeData) {
|
||||||
|
|
||||||
jpeg_start_decompress (&cinfo);
|
jpeg_start_decompress (&cinfo);
|
||||||
int components = cinfo.num_components;
|
int components = cinfo.output_components;
|
||||||
imageBuffer->Resize (cinfo.output_width, cinfo.output_height, 32);
|
imageBuffer->Resize (cinfo.output_width, cinfo.output_height, 32);
|
||||||
|
|
||||||
unsigned char *bytes = imageBuffer->data->Data ();
|
unsigned char *bytes = imageBuffer->data->Data ();
|
||||||
|
|||||||
Reference in New Issue
Block a user