GraphicsMagick: Move ping_file_depth assignment position to fix ...
GraphicsMagick Commits <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.cvs |
|---|---|
| Message-ID | <mailman.16633.1668359666.1459.graphicsmagick-commit@lists.sourceforge.net> |
changeset 449877615e46 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=449877615e46
summary: Move ping_file_depth assignment position to fix input_bw.png read test
diffstat:
coders/png.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 5655cac4e9f3 -r 449877615e46 coders/png.c
--- a/coders/png.c Sun Nov 13 08:32:25 2022 -0600
+++ b/coders/png.c Sun Nov 13 11:14:13 2022 -0600
@@ -1805,6 +1805,8 @@
image->depth=8;
#endif
+ ping_file_depth = (unsigned int) ping_bit_depth;
+
/* Save bit-depth and color-type in case we later want to write a PNG00 */
{
char
@@ -1865,8 +1867,6 @@
image->depth=8;
}
- ping_file_depth = (unsigned int) ping_bit_depth;
-
#if defined(PNG_READ_iCCP_SUPPORTED)
if (png_get_valid(ping, ping_info, PNG_INFO_iCCP))
{