[libpng17]Rearranged png_struct, remove unused members, change png_set_filter

handling png_struct members rearranged - partly to reorder to avoid packing,
partly to put frequently accessed members at the start and partly to make
the grouping more clear. png_set_filter code has been rewritten and the
code shared with png_write_start_row moved to a common function.  Comments
in png.h have been made more clear. Minor fixes to
contrib/libtests/timepng.c and some of the png_*_tRNS logic, including
more error detection in png_set_tRNS.
This commit is contained in:
John Bowler
2012-12-14 22:31:50 -06:00
committed by Glenn Randers-Pehrson
parent 3e42c81193
commit 240ac287eb
11 changed files with 49 additions and 31 deletions

View File

@@ -252,7 +252,7 @@ int main(int argc, char **argv)
while (fgets(filename, FILENAME_MAX+1, stdin))
{
int len = strlen(filename);
size_t len = strlen(filename);
if (filename[len-1] == '\n')
{