Skip to content

Commit f589f86

Browse files
hugovkradarhere
andauthored
Initialise __logical_frame = 0 so tell() == 0 when unpickled
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
1 parent 913e79f commit f589f86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PIL/WebPImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class WebPImageFile(ImageFile.ImageFile):
3939
format = "WEBP"
4040
format_description = "WebP image"
4141
__loaded = -1
42-
__logical_frame = -1
42+
__logical_frame = 0
4343

4444
def _open(self):
4545
if not _webp.HAVE_WEBPANIM:

0 commit comments

Comments
 (0)