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

core: add pts, dts #347

Open
wants to merge 2 commits into
base: dev-0.6
Choose a base branch
from
Open

Conversation

sscobici
Copy link

adding pts (former ts) and dts.

This was done in two commits: the first for renaming ts to pts, and the second for adding dts (i64), which can be negative for video.
Audio crates will not need to pass dts when creating the Packet using thenew methods. Video packets are planned to be created with new_from_boxed_slice_v, which will include a dts parameter. new_from_boxed_slice_v is not present in this commit, but I have changes for MP4 to include DTS. Waiting for MP4 refactoring if you plan to do it.

For some reason, only the ogg crate uses packet.ts directly, which is why it was impacted as well.
Can the ogg crate be rewritten to use internal structures instead?

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