OLD | NEW |
1 | 1 |
2 /* pngset.c - storage of image information into info struct | 2 /* pngset.c - storage of image information into info struct |
3 * | 3 * |
4 * Last changed in libpng 1.6.19 [November 12, 2015] | 4 * Last changed in libpng 1.6.19 [November 12, 2015] |
5 * Copyright (c) 1998-2015 Glenn Randers-Pehrson | 5 * Copyright (c) 1998-2015 Glenn Randers-Pehrson |
6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) | 6 * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) |
7 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) | 7 * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) |
8 * | 8 * |
9 * This code is released under the libpng license. | 9 * This code is released under the libpng license. |
10 * For conditions of distribution and use, see the disclaimer | 10 * For conditions of distribution and use, see the disclaimer |
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1638 png_debug(1, "in png_set_check_for_invalid_index"); | 1638 png_debug(1, "in png_set_check_for_invalid_index"); |
1639 | 1639 |
1640 if (allowed > 0) | 1640 if (allowed > 0) |
1641 png_ptr->num_palette_max = 0; | 1641 png_ptr->num_palette_max = 0; |
1642 | 1642 |
1643 else | 1643 else |
1644 png_ptr->num_palette_max = -1; | 1644 png_ptr->num_palette_max = -1; |
1645 } | 1645 } |
1646 #endif | 1646 #endif |
1647 #endif /* READ || WRITE */ | 1647 #endif /* READ || WRITE */ |
OLD | NEW |