Skip to content

Commit 1d9fc2d

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

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
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{};

External/libpng

Submodule libpng updated 1 file

0 commit comments

Comments
 (0)