mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Removed unnecessary code
This commit is contained in:
parent
63c3b26f6a
commit
e766ddbc39
|
@ -1119,12 +1119,8 @@ def _write_multiple_frames(im, fp, chunk, rawmode):
|
||||||
and prev_disposal == encoderinfo.get("disposal")
|
and prev_disposal == encoderinfo.get("disposal")
|
||||||
and prev_blend == encoderinfo.get("blend")
|
and prev_blend == encoderinfo.get("blend")
|
||||||
):
|
):
|
||||||
frame_duration = encoderinfo.get("duration", 0)
|
if isinstance(duration, (list, tuple)):
|
||||||
if frame_duration:
|
previous["encoderinfo"]["duration"] += encoderinfo["duration"]
|
||||||
if "duration" in previous["encoderinfo"]:
|
|
||||||
previous["encoderinfo"]["duration"] += frame_duration
|
|
||||||
else:
|
|
||||||
previous["encoderinfo"]["duration"] = frame_duration
|
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
bbox = None
|
bbox = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user