|
|
@@ -58,15 +58,15 @@ pipi_image_t *pipi_load_jpeg(const char *name) |
|
|
|
jpeg_create_decompress(&cinfo); |
|
|
|
cinfo.client_data = 0x0; |
|
|
|
jpeg_stdio_src(&cinfo, fp); |
|
|
|
if((int)cinfo.client_data == 0x1) { |
|
|
|
if(cinfo.client_data == (void *)0x1) { |
|
|
|
goto end; |
|
|
|
} |
|
|
|
jpeg_read_header(&cinfo, TRUE); |
|
|
|
if((int)cinfo.client_data == 0x1) { |
|
|
|
if(cinfo.client_data == (void *)0x1) { |
|
|
|
goto end; |
|
|
|
} |
|
|
|
jpeg_start_decompress(&cinfo); |
|
|
|
if((int)cinfo.client_data == 0x1) { |
|
|
|
if(cinfo.client_data == (void *)0x1) { |
|
|
|
goto end; |
|
|
|
} |
|
|
|
|
|
|
@@ -80,7 +80,7 @@ pipi_image_t *pipi_load_jpeg(const char *name) |
|
|
|
for(i=0; i < cinfo.output_height; i++) |
|
|
|
{ |
|
|
|
jpeg_read_scanlines(&cinfo, &scanline, 1); |
|
|
|
if((int)cinfo.client_data == 0x1) { |
|
|
|
if(cinfo.client_data == (void *)0x1) { |
|
|
|
free(img); |
|
|
|
img = NULL; |
|
|
|
goto end; |
|
|
|