From 0051fc9cf82fbece7c4e9acbbec65d688fdd3000 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 28 Oct 2023 16:43:43 +1100 Subject: [PATCH] Removed unnecessary seek --- src/PIL/DdsImagePlugin.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/PIL/DdsImagePlugin.py b/src/PIL/DdsImagePlugin.py index 5c4abfba3..51bb0201b 100644 --- a/src/PIL/DdsImagePlugin.py +++ b/src/PIL/DdsImagePlugin.py @@ -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: