Skip to content

Commit

Permalink
Removed unnecessary seek
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 28, 2023
1 parent 8548522 commit 0051fc9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/PIL/DdsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,6 @@ def _open(self):
# 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:
Expand Down

0 comments on commit 0051fc9

Please sign in to comment.