Skip to content

Commit a817c7d

Browse files
fdintinoBlackSmith
andauthored
fix: TypeError: 'float' object cannot be interpreted as an integer. (#71)
Cast frame duration as an int to avoid TypeError Co-authored-by: Martin Korbel <git@blackserver.cz>
1 parent 62f7c94 commit a817c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pillow_avif/AvifImagePlugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def _save(im, fp, filename, save_all=False):
287287
# Append the frame to the animation encoder
288288
enc.add(
289289
frame.tobytes("raw", rawmode),
290-
frame_duration,
290+
int(frame_duration),
291291
frame.size[0],
292292
frame.size[1],
293293
rawmode,

0 commit comments

Comments
 (0)