close
Skip to content

Fix duration on ffmpeg backend#150

Open
magnus-nomono wants to merge 1 commit intobeetbox:mainfrom
magnus-nomono:fix-ffmpeg-backend-duration
Open

Fix duration on ffmpeg backend#150
magnus-nomono wants to merge 1 commit intobeetbox:mainfrom
magnus-nomono:fix-ffmpeg-backend-duration

Conversation

@magnus-nomono
Copy link
Copy Markdown

The current code only reads the first decimal, ignoring the rest, while ffmpeg seems to always give two decimals. This gives result that can be almost a tenth of a second wrong in some cases, while giving unnecessarily low accuracy in the remaining.

This PR fixes the code so it supports an arbitrary number of decimals on the second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant