Skip to content

Commit dd49b6d

Browse files
author
BoboTiG
committed
MSS: smart CRC32 calculation of IEND chunk
1 parent b2d8815 commit dd49b6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def to_png(self, data, width, height, output):
214214

215215
# Footer: size, marker, None, CRC32
216216
iend = [b'', b'IEND', b'', b'']
217-
iend[3] = b(b'>I', crc32(b''.join(iend[1:3])) & 0xffffffff)
217+
iend[3] = b(b'>I', crc32(iend[1]) & 0xffffffff)
218218
iend[0] = b(b'>I', len(iend[2]))
219219
iend = b''.join(iend)
220220

0 commit comments

Comments
 (0)