diff --git a/PIL/FliImagePlugin.py b/PIL/FliImagePlugin.py index a2d0e0fab..2a9145b42 100644 --- a/PIL/FliImagePlugin.py +++ b/PIL/FliImagePlugin.py @@ -38,7 +38,7 @@ class FliImageFile(ImageFile.ImageFile): format = "FLI" format_description = "Autodesk FLI/FLC Animation" _close_exclusive_fp_after_loading = False - + def _open(self): # HEAD @@ -56,7 +56,7 @@ class FliImageFile(ImageFile.ImageFile): # animation speed duration = i32(s[16:20]) if magic == 0xAF11: - duration = (duration * 1000) / 70 + duration = (duration * 1000) // 70 self.info["duration"] = duration # look for palette @@ -176,6 +176,7 @@ class FliImageFile(ImageFile.ImageFile): def tell(self): return self.__frame + # # registry