Removed unnecessary code

This commit is contained in:
Andrew Murray 2021-07-13 22:59:49 +10:00
parent 63c3b26f6a
commit e766ddbc39

View File

@ -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