[master] Fixed a bug (present since libpng-1.0.7) that makes png_handle_sPLT()
fail to compile when PNG_NO_POINTER_INDEXING is defined.
This commit is contained in:
parent
0e1aad158a
commit
31f4e52842
6
ANNOUNCE
6
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.4.6beta07 - March 20, 2011
|
Libpng 1.4.6beta07 - March 21, 2011
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -53,7 +53,7 @@ version 1.4.6beta06 [March 19, 2011]
|
|||||||
Updated contrib/pngsuite/README to add the word "modify".
|
Updated contrib/pngsuite/README to add the word "modify".
|
||||||
Added the private PNG_UNUSED() macro definition in pngconf.h.
|
Added the private PNG_UNUSED() macro definition in pngconf.h.
|
||||||
|
|
||||||
version 1.4.6beta07 [March 20, 2011]
|
version 1.4.6beta07 [March 21, 2011]
|
||||||
ifdef out mask arrays in pngread.c when interlacing is not supported.
|
ifdef out mask arrays in pngread.c when interlacing is not supported.
|
||||||
Added attribute definition (warnings) for MSC_VER >= 1300 in pngconf.h
|
Added attribute definition (warnings) for MSC_VER >= 1300 in pngconf.h
|
||||||
Added -D_CRT_SECURE_NO_DEPRECATE to CFLAGS in makefile.vcwin32
|
Added -D_CRT_SECURE_NO_DEPRECATE to CFLAGS in makefile.vcwin32
|
||||||
@ -64,6 +64,8 @@ version 1.4.6beta07 [March 20, 2011]
|
|||||||
Fixed incorrect examples of callback prototypes in the manual, that were
|
Fixed incorrect examples of callback prototypes in the manual, that were
|
||||||
introduced in libpng-1.0.0.
|
introduced in libpng-1.0.0.
|
||||||
Removed "strip" from contrib/pngminim/*/makefile.
|
Removed "strip" from contrib/pngminim/*/makefile.
|
||||||
|
Fixed a bug (present since libpng-1.0.7) that makes png_handle_sPLT() fail
|
||||||
|
to compile when PNG_NO_POINTER_INDEXING is defined.
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
4
CHANGES
4
CHANGES
@ -2765,7 +2765,7 @@ version 1.4.6beta06 [March 19, 2011]
|
|||||||
Updated contrib/pngsuite/README to add the word "modify".
|
Updated contrib/pngsuite/README to add the word "modify".
|
||||||
Added the private PNG_UNUSED() macro definition in pngconf.h.
|
Added the private PNG_UNUSED() macro definition in pngconf.h.
|
||||||
|
|
||||||
version 1.4.6beta07 [March 20, 2011]
|
version 1.4.6beta07 [March 21, 2011]
|
||||||
ifdef out mask arrays in pngread.c when interlacing is not supported.
|
ifdef out mask arrays in pngread.c when interlacing is not supported.
|
||||||
Added attribute definition (warnings) for MSC_VER >= 1300 in pngconf.h
|
Added attribute definition (warnings) for MSC_VER >= 1300 in pngconf.h
|
||||||
Added -D_CRT_SECURE_NO_DEPRECATE to CFLAGS in makefile.vcwin32
|
Added -D_CRT_SECURE_NO_DEPRECATE to CFLAGS in makefile.vcwin32
|
||||||
@ -2776,6 +2776,8 @@ version 1.4.6beta07 [March 20, 2011]
|
|||||||
Fixed incorrect examples of callback prototypes in the manual, that were
|
Fixed incorrect examples of callback prototypes in the manual, that were
|
||||||
introduced in libpng-1.0.0.
|
introduced in libpng-1.0.0.
|
||||||
Removed "strip" from contrib/pngminim/*/makefile.
|
Removed "strip" from contrib/pngminim/*/makefile.
|
||||||
|
Fixed a bug (present since libpng-1.0.7) that makes png_handle_sPLT() fail
|
||||||
|
to compile when PNG_NO_POINTER_INDEXING is defined.
|
||||||
|
|
||||||
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
Send comments/corrections/commendations to glennrp at users.sourceforge.net
|
||||||
or to png-mng-implement at lists.sf.net (subscription required; visit
|
or to png-mng-implement at lists.sf.net (subscription required; visit
|
||||||
|
@ -1216,9 +1216,7 @@ png_handle_sPLT(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
|
|||||||
{
|
{
|
||||||
png_bytep entry_start;
|
png_bytep entry_start;
|
||||||
png_sPLT_t new_palette;
|
png_sPLT_t new_palette;
|
||||||
#ifdef PNG_POINTER_INDEXING_SUPPORTED
|
|
||||||
png_sPLT_entryp pp;
|
png_sPLT_entryp pp;
|
||||||
#endif
|
|
||||||
int data_length, entry_size, i;
|
int data_length, entry_size, i;
|
||||||
png_uint_32 skip = 0;
|
png_uint_32 skip = 0;
|
||||||
png_size_t slength;
|
png_size_t slength;
|
||||||
@ -1357,7 +1355,7 @@ png_handle_sPLT(png_structp png_ptr, png_infop info_ptr, png_uint_32 length)
|
|||||||
pp[i].blue = png_get_uint_16(entry_start); entry_start += 2;
|
pp[i].blue = png_get_uint_16(entry_start); entry_start += 2;
|
||||||
pp[i].alpha = png_get_uint_16(entry_start); entry_start += 2;
|
pp[i].alpha = png_get_uint_16(entry_start); entry_start += 2;
|
||||||
}
|
}
|
||||||
pp->frequency = png_get_uint_16(entry_start); entry_start += 2;
|
pp[i].frequency = png_get_uint_16(entry_start); entry_start += 2;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user