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 getVideoStartPts when timestamps wrap at MPEG-2 33-bit boundary #6892

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Dec 5, 2024

This PR will...

Fix getVideoStartPts when timestamps wrap at MPEG-2 33-bit boundary

Why is this Pull Request needed?

The arguments used to normalized timestamps in getVideoStartPts where provided backwards, and the normalized wrapped value was always used to update the minimum, even though wrapped values are generally are wrapped because timestamp values are advancing.

This issue had little to no effect because the value returned by getVideoStartPts is only used to determine the difference between audio and video samples at the start of TS segments, the result for which was not off by much if anything when wrapping occurred near the start of a TS segment.

Are there any points in the code the reviewer needs to double check?

Resolves issues:

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch robwalch added this to the 1.6.0 milestone Dec 5, 2024
@robwalch robwalch force-pushed the bugfix/fix-start-pts-normalization branch from d4fd26a to c31aea1 Compare December 5, 2024 21:22
@robwalch robwalch merged commit 0af1391 into master Dec 5, 2024
16 checks passed
@robwalch robwalch deleted the bugfix/fix-start-pts-normalization branch December 5, 2024 22:19
@robwalch robwalch modified the milestones: 1.6.0, 1.5.18 Dec 17, 2024
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