[proaudio] libpng patch for jmeters |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
- To: proaudio <proaudio@xxxxxxxxxxxxxxxxxxx>
- Subject: [proaudio] libpng patch for jmeters
- From: Reuben Martin <reuben.m@xxxxxxxxx>
- Date: Mon, 20 Aug 2012 17:51:12 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; bh=6rHI56T20YP+xezTnABOjP3L5OYEc7AVkb5md1kXJTg=; b=I6BMkkFRiOGdLYxvxiYX6o22yHHK+7wsxaPLdBekgUY9/ZmVQLjy/RdWx4v+9UdZv9 Q6QCYLBvx+oPWh6fnHdSN2Od4DSyNKnIva6GFPBiyLRveRMOeO0pLaqyZM7inmZMBJsL OPwfVfjM+loHcNXQzpo6MhJPQby1xU9V25tE59NH3XYESwtoCoEi7F3s/Naq3hzoy/2D He1Rr0oSOU0rwh3UJIgwIbyGAWeDbb/2kcXiPuIHQbMEx7rXH2EtQZZ6QSfjZhBjYVpl MagHa8zHm+5bwXwpdXw6XRzsILsxAMbeoqkbKU34R3oYwpBKC42iI1qL6LMYJ+5u2pQP Lqag==
please include patch for libpng >= 1.5
thanks,
-Reuben
--- mkimage.cc 2012-08-20 17:40:55.394562834 -0500
+++ mkimage.cc 2012-08-20 17:43:03.137195746 -0500
@@ -54,8 +54,8 @@
PNG_TRANSFORM_STRIP_16 | PNG_TRANSFORM_PACKING | PNG_TRANSFORM_EXPAND,
0);
- dx = png_info->width;
- dy = png_info->height;
+ dx = png_get_image_width(png_ptr, png_info);
+ dy = png_get_image_height(png_ptr, png_info);
data = (const unsigned char **)(png_get_rows (png_ptr, png_info));
image = XCreateImage (disp->dpy (),