Skip to content

Commit 8f5a4a7

Browse files
author
Lior Lahav
committed
Fixed: PNG color space when decoding images
1 parent 383bdeb commit 8f5a4a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Codecs/CodecPNG/Source/CodecPng.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ namespace IMCodec
164164

165165
png_get_acTL(png_ptr, info_ptr, &numFrames, &numPlays);
166166

167+
png_read_update_info(png_ptr, info_ptr);
168+
167169
if (numFrames > 1)
168170
{
169171
png_uint_32 framewidth{};

0 commit comments

Comments
 (0)