mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-24 16:24:11 +03:00
Renamed variable
This commit is contained in:
parent
45aec95717
commit
0521ac71e0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user