Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videos: Avoid float math for frame durations #7454

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

glebm
Copy link
Collaborator

@glebm glebm commented Oct 3, 2024

SMK format actually defines frame durations in units that are 1ms or 0.01ms:

https://github.com/diasurgical/libsmackerdec/blob/91e732bb6953489077430572f43fc802bf2c75b2/src/SmackerDecoder.cpp#L329-L334

That's great because it means we can do everything using integer math.

SMK format actually defines frame durations in units that are 0.01ms:

https://github.com/diasurgical/libsmackerdec/blob/91e732bb6953489077430572f43fc802bf2c75b2/src/SmackerDecoder.cpp#L329-L334

That's great because it means we can do everything using integer math.
@glebm glebm enabled auto-merge (rebase) October 3, 2024 23:14
@AJenbo AJenbo disabled auto-merge October 3, 2024 23:55
@AJenbo AJenbo merged commit f476754 into diasurgical:master Oct 3, 2024
22 of 23 checks passed
@glebm glebm deleted the doulbe-to-float branch October 4, 2024 00:09
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.

2 participants