mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Removed unnecessary seek
This commit is contained in:
parent
85485229e3
commit
0051fc9cf8
|
@ -346,8 +346,6 @@ class DdsImageFile(ImageFile.ImageFile):
|
||||||
# pixel format
|
# pixel format
|
||||||
pfsize, pfflags, fourcc, bitcount = struct.unpack("<4I", header.read(16))
|
pfsize, pfflags, fourcc, bitcount = struct.unpack("<4I", header.read(16))
|
||||||
masks = 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
|
n = 0
|
||||||
rawmode = None
|
rawmode = None
|
||||||
if pfflags & DDPF.RGB:
|
if pfflags & DDPF.RGB:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user