Menu

#29 png_helper.cpp : line # 77

open
nobody
None
5
2013-01-12
2013-01-12
Anonymous
No

As of PNG 1.5 png_struct_def has become an opaque structure and accessing it using the latest PNG libraries requires changing the line to

void write_data(png_structp png_ptr, png_bytep data, png_size_t length)
{
fwrite(data, length, 1, (FILE*) png_get_io_ptr(png_ptr));
}

This is supported since PNG 1.0

Reference : http://trac.osgeo.org/gdal/ticket/3914

Discussion


Log in to post a comment.