Renamed variable

This commit is contained in:
Andrew Murray 2021-07-13 18:43:56 +10:00
parent 45aec95717
commit 0521ac71e0

View File

@ -1117,12 +1117,12 @@ def _write_multiple_frames(im, fp, chunk, rawmode):
and prev_disposal == encoderinfo.get("disposal")
and prev_blend == encoderinfo.get("blend")
):
now_duration = encoderinfo.get("duration", 0)
if now_duration:
frame_duration = encoderinfo.get("duration", 0)
if frame_duration:
if "duration" in previous["encoderinfo"]:
previous["encoderinfo"]["duration"] += now_duration
previous["encoderinfo"]["duration"] += frame_duration
else:
previous["encoderinfo"]["duration"] = now_duration
previous["encoderinfo"]["duration"] = frame_duration
continue
else:
bbox = None