Revert "png_reset_prev_row" from png.h and pngrutil.c

This should be handled in the APNG fork, not in libpng proper.
This commit is contained in:
Glenn Randers-Pehrson
2009-05-18 11:49:19 -05:00
parent 0c062e839d
commit 54028e5943
2 changed files with 7 additions and 13 deletions

View File

@@ -2920,6 +2920,8 @@ png_read_finish_row(png_structp png_ptr)
if (png_ptr->interlaced)
{
png_ptr->row_number = 0;
png_memset_check(png_ptr, png_ptr->prev_row, 0,
png_ptr->rowbytes + 1);
do
{
png_ptr->pass++;
@@ -3211,15 +3213,7 @@ defined(PNG_USER_TRANSFORM_PTR_SUPPORTED)
png_memset_check(png_ptr, png_ptr->prev_row, 0, row_bytes + 1);
png_ptr->old_prev_row_size = row_bytes + 1;
}
else
{
if (png_ptr->reset_prev_row == 1)
{
png_memset_check(png_ptr, png_ptr->prev_row, 0, row_bytes + 1);
}
}
png_ptr->reset_prev_row = 0;
png_ptr->rowbytes = row_bytes;
png_debug1(3, "width = %lu,", png_ptr->width);