mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Fix certain minimal config builds
The removal of png_struct::row_buffer and png_struct::row_format from write builds configured without filter or transform support (respectively) wasn't complete; some of the png.c and pngwrite.c cleanup code needed to handle the potentially removed members. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
8
png.c
8
png.c
@@ -2448,10 +2448,12 @@ png_copy_row(png_const_structrp png_ptr, png_bytep dp, png_const_bytep sp,
|
||||
* little endian; bits to copy in the bottom of 's'. Make 'remaining'
|
||||
* into a mask of the bits to *preserve* in dp.
|
||||
*/
|
||||
if ((png_ptr->row_format & PNG_FORMAT_FLAG_SWAPPED) == 0U)
|
||||
remaining = 0xffU >> remaining;
|
||||
# ifdef PNG_TRANSFORM_MECH_SUPPORTED
|
||||
if ((png_ptr->row_format & PNG_FORMAT_FLAG_SWAPPED) == 0U)
|
||||
remaining = 0xffU >> remaining;
|
||||
|
||||
else
|
||||
else
|
||||
# endif /* TRANSFORM_MECH */
|
||||
remaining = 0xffU << remaining;
|
||||
|
||||
/* remaining is now the bits to *keep* from the destination byte, if
|
||||
|
||||
Reference in New Issue
Block a user