jeanslack / Videomass

Videomass is a free, open source and cross-platform GUI for FFmpeg and yt-dlp
https://jeanslack.github.io/Videomass/
GNU General Public License v3.0
1.12k stars 51 forks source link

fix DeprecationWarning #179

Closed jeanslack closed 1 year ago

jeanslack commented 1 year ago

Closes #178

This PR fix DeprecationWarning to works with Python >= 3.10 (In Python 3.10, a change was implemented where extension functions that take integer arguments will no longer silently accept non-integer arguments (e.g., floats) that can only be converted to integers with a loss of precision).

This problem occurs when using the Crop and Rotation filters (also the old timeline bar on Videomass <= 4.0.2). This leads to various stacktraces using Python >= 3.10