diff options
author | Michael Weber <xmw@gentoo.org> | 2012-11-04 16:28:35 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2012-11-04 16:28:35 +0000 |
commit | afc147443425e245f791f608f4c658078e8ed53a (patch) | |
tree | c078b73834303c12eb1e9a76ebcd59bbca70348d /media-libs/oyranos/files/oyranos-0.9.0-png.patch | |
parent | [bump] dev-perl/CGI-Emulate-PSGI-0.150.0 (diff) | |
download | historical-afc147443425e245f791f608f4c658078e8ed53a.tar.gz historical-afc147443425e245f791f608f4c658078e8ed53a.tar.bz2 historical-afc147443425e245f791f608f4c658078e8ed53a.zip |
Version bump with upstream fixes (thanks Andreas Sturmlechner, bug 440838)
Package-Manager: portage-2.1.11.31/cvs/Linux x86_64
Manifest-Sign-Key: 0x62EEF090
Diffstat (limited to 'media-libs/oyranos/files/oyranos-0.9.0-png.patch')
-rw-r--r-- | media-libs/oyranos/files/oyranos-0.9.0-png.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/media-libs/oyranos/files/oyranos-0.9.0-png.patch b/media-libs/oyranos/files/oyranos-0.9.0-png.patch new file mode 100644 index 000000000000..7bcc28651f1c --- /dev/null +++ b/media-libs/oyranos/files/oyranos-0.9.0-png.patch @@ -0,0 +1,31 @@ +from http://www.oyranos.org/scm?p=oyranos.git;a=commitdiff;h=c39976bf5de8a70f71cef2ecafae13d17e811857 +--- a/modules/oyranos_cmm_oPNG.c ++++ b/modules/oyranos_cmm_oPNG.c +@@ -816,7 +816,8 @@ oyImage_s * oyImage_FromPNG ( const char * filename, + spp = 2; break; + case PNG_COLOR_TYPE_PALETTE: + png_set_palette_to_rgb( png_ptr ); +- spp = 3; break; ++ /* expect alpha */ ++ spp = 4; break; + case PNG_COLOR_TYPE_RGB: + spp = 3; break; + case PNG_COLOR_TYPE_RGB_ALPHA: +@@ -884,10 +885,15 @@ oyImage_s * oyImage_FromPNG ( const char * filename, + oyToDataType_m(pixel_layout), + 0 ); + png_byte ** array2d = (png_byte**) oyArray2d_GetData( a ); +- int i; ++ int i,y; + ++ /* both variants of libpng access appear equal */ ++ if(1) ++ png_read_image( png_ptr, array2d ); ++ else + for( i = 0; i < num_passes; ++i ) +- png_read_rows( png_ptr, array2d, NULL, height ); ++ for( y = 0; y < height; ++y ) ++ png_read_row( png_ptr, array2d[y], NULL ); + + oyImage_SetData ( image_in, (oyStruct_s**) &a, 0,0,0,0,0,0 ); + } |