diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 17:02:35 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 17:02:35 +0000 |
commit | 4a49a9cb4093dfdcd1ac153c6074ff06544b9fd0 (patch) | |
tree | f146c554b3dccba250b600f113a144fc46186182 /graphics/rawtherapee | |
parent | 166cc79d5c8c167498ddf06460dbf568f4d2994c (diff) |
Notes
Diffstat (limited to 'graphics/rawtherapee')
-rw-r--r-- | graphics/rawtherapee/files/patch-rtengine_imageio.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/rawtherapee/files/patch-rtengine_imageio.cc b/graphics/rawtherapee/files/patch-rtengine_imageio.cc new file mode 100644 index 000000000000..392521666844 --- /dev/null +++ b/graphics/rawtherapee/files/patch-rtengine_imageio.cc @@ -0,0 +1,20 @@ +--- rtengine/imageio.cc.orig 2009-12-31 21:43:22.000000000 +0100 ++++ rtengine/imageio.cc 2010-03-29 18:32:58.000000000 +0200 +@@ -151,7 +151,7 @@ + //reading PNG header + unsigned char header[8]; + fread (header, 1, 8, file); +- if (!png_check_sig (header, 8)) { ++ if (png_sig_cmp (header, 0, 8)) { + fclose(file); + return IMIO_HEADERERROR; + } +@@ -184,7 +184,7 @@ + embProfile = NULL; + + //retrieving image information +- unsigned long width,height; ++ png_uint_32 width,height; + int bit_depth,color_type,interlace_type,compression_type,filter_method; + png_get_IHDR(png,info,&width,&height,&bit_depth,&color_type,&interlace_type, + &compression_type, &filter_method); |