VirtualBox

Ignore:
Timestamp:
Feb 12, 2024 3:57:56 PM (11 months ago)
Author:
vboxsync
Message:

libpng-1.6.42: Applied and adjusted our libpng changes to 1.6.42. bugref:8515

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/libpng-1.6.42/pngtrans.c

    r96425 r103316  
    22/* pngtrans.c - transforms the data in a row (used by both readers and writers)
    33 *
    4  * Copyright (c) 2018 Cosmin Truta
     4 * Copyright (c) 2018-2024 Cosmin Truta
    55 * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
    66 * Copyright (c) 1996-1997 Andreas Dilger
     
    104104   {
    105105      png_ptr->transformations |= PNG_INTERLACE;
    106       return (7);
    107    }
    108 
    109    return (1);
     106      return 7;
     107   }
     108
     109   return 1;
    110110}
    111111#endif
     
    499499   png_bytep ep = row + row_info->rowbytes; /* One beyond end of row */
    500500
     501   png_debug(1, "in png_do_strip_channel");
     502
    501503   /* At the start sp will point to the first byte to copy and dp to where
    502504    * it is copied to.  ep always points just beyond the end of the row, so
     
    699701png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info)
    700702{
     703   png_debug(1, "in png_do_check_palette_indexes");
     704
    701705   if (png_ptr->num_palette < (1 << row_info->bit_depth) &&
    702706      png_ptr->num_palette > 0) /* num_palette can be 0 in MNG files */
     
    709713       */
    710714      int padding = PNG_PADBITS(row_info->pixel_depth, row_info->width);
    711       png_bytep rp = png_ptr->row_buf + row_info->rowbytes - 1;
     715      png_bytep rp = png_ptr->row_buf + row_info->rowbytes;
    712716
    713717      switch (row_info->bit_depth)
     
    834838{
    835839   if (png_ptr == NULL)
    836       return (NULL);
     840      return NULL;
    837841
    838842   return png_ptr->user_transform_ptr;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette