Removed unnecessary seek

This commit is contained in:
Andrew Murray 2023-10-28 16:43:43 +11:00
parent 85485229e3
commit 0051fc9cf8

View File

@ -346,8 +346,6 @@ class DdsImageFile(ImageFile.ImageFile):
# pixel format
pfsize, pfflags, fourcc, bitcount = struct.unpack("<4I", header.read(16))
masks = struct.unpack("<4I", header.read(16))
if flags & DDSD.CAPS:
header.seek(20, io.SEEK_CUR)
n = 0
rawmode = None
if pfflags & DDPF.RGB: