Skip to content

Commit

Permalink
Fix fps being returned as Fraction instead of float in `_get_file_fps…
Browse files Browse the repository at this point in the history
…_frames_duration_pillow()`
  • Loading branch information
laggykiller committed May 30, 2024
1 parent 04f98cd commit 9a69753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sticker_convert/utils/media/codec_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def _get_file_fps_frames_duration_pillow(
else:
duration_gcd = durations_gcd(*durations)
frames_apparent = total_duration / duration_gcd
fps = frames_apparent / total_duration * 1000
fps = float(frames_apparent / total_duration * 1000)
return fps, frames, total_duration

return 0.0, 1, 0
Expand Down

0 comments on commit 9a69753

Please sign in to comment.