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

Fix Default implementation for TimeBase #364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

1c3t3a
Copy link

@1c3t3a 1c3t3a commented Mar 19, 2025

A TimeBase represents symphonia's conversion factor between time. It does not make sense for it to have a factor of 0, which is also checked by its constructor TimeBase::new. Unfortunately the Default implementation for TimeBase is derived, yielding a value of 0 for both u32 members (numerator and denominator), which is probably not what we want. This change switches the default to be 1.

Also fixes a typo in the doc comment for TimeStamp.

A TimeBase represents symphonia's conversion factor between time.
It does not make sense for it to have a factor of 0, which is also
checked by its constructor TimeBase::new. Unfortunately the Default
implementation for TimeBase is derived, yielding a value of 0 for both
u32 members (numerator and denominator), which is probably not what we
want. This change switches the default to be 1.

Also fixes a typo in the doc comment for TimeStamp.
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