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_disposal == encoderinfo.get("disposal")
and prev_blend == encoderinfo.get("blend") and prev_blend == encoderinfo.get("blend")
): ):
now_duration = encoderinfo.get("duration", 0) frame_duration = encoderinfo.get("duration", 0)
if now_duration: if frame_duration:
if "duration" in previous["encoderinfo"]: if "duration" in previous["encoderinfo"]:
previous["encoderinfo"]["duration"] += now_duration previous["encoderinfo"]["duration"] += frame_duration
else: else:
previous["encoderinfo"]["duration"] = now_duration previous["encoderinfo"]["duration"] = frame_duration
continue continue
else: else:
bbox = None bbox = None