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

Only apply minimum ID3 cue duration when cue has none #2964

Merged
merged 1 commit into from Aug 18, 2020

Conversation

robwalch
Copy link
Collaborator

This PR will...

Only apply minimum ID3 cue duration when cue does not have a valid duration.

Why is this Pull Request needed?

ID3 cues found on the last sample of an ID3 track or cues in tracks with out-of-order PTS will have an end time that is equal or less than their start time, which is not valid.

This fixes a regression introduced in v0.14.8 with #2951 where we applied a minimum duration 0.25s to all metadata cues, to ensure change events always fire, without considering the need to maintain the duration of cues intended to provide data relative to video frames (where the duration is more likely to be ~0.008-0.04s).

Resolves issues:

#2963

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 0.14.9 milestone Aug 10, 2020
@robwalch robwalch requested a review from itsjamie August 10, 2020 19:03
@robwalch robwalch changed the base branch from master to patch/v0.14.x August 11, 2020 16:30
@robwalch robwalch merged commit fc71d81 into patch/v0.14.x Aug 18, 2020
@robwalch robwalch deleted the bugfix/min-id3-cue-duration branch August 18, 2020 19:52
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.

None yet

1 participant