Browse Source

* Changed petit pédé's stuff

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3088 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
jylam 16 years ago
parent
commit
7d5c789c26
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      pipi/codec/modular/jpeg.c

+ 4
- 4
pipi/codec/modular/jpeg.c View File

@@ -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;


Loading…
Cancel
Save