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 audio remuxer out of sequence sample drop regression #2960

Merged
merged 1 commit into from
Aug 7, 2020

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Aug 7, 2020

This PR will...

Fix a regression introduced in v0.14.1, in the audio remuxer, where bad samples mid fragment were not being dropped.

Why is this Pull Request needed?

Appending out of order samples results in stretching of audio track duration.

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

Test stream (4 second segment with one out of sequence audio sample) https://playertest.longtailvideo.com/adaptive/audio-sample-out-of-sequence/main.m3u8

The video duration becomes 27 hours:
https://hls-js.netlify.app/demo/?src=https%3A%2F%2Fplayertest.longtailvideo.com%2Fadaptive%2Faudio-sample-out-of-sequence%2Fmain.m3u8&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsImR1bXBmTVA0IjpmYWxzZSwibGV2ZWxDYXBwaW5nIjotMSwibGltaXRNZXRyaWNzIjotMX0=

Resolves issues

#2959

Checklist

  • changes have been done against master/patch branch, and PR does not conflict
  • unit / functional tests pass

@robwalch robwalch added this to the 0.15.0 milestone Aug 7, 2020
@robwalch robwalch modified the milestones: 0.15.0, 0.14.8 Aug 7, 2020
@robwalch robwalch force-pushed the bugfix/drop-bad-audio-samples branch from 2d2e751 to e88d540 Compare August 7, 2020 16:41
@robwalch robwalch changed the base branch from master to patch/v0.14.8 August 7, 2020 16:41
…ent were not being dropped, resulting in stretching of audio track duration once appended

Test stream (4 second segment with one out of sequence audio sample) https://playertest.longtailvideo.com/adaptive/audio-sample-out-of-sequence/main.m3u8
@robwalch robwalch force-pushed the bugfix/drop-bad-audio-samples branch from e88d540 to bf95cdd Compare August 7, 2020 16:42
@robwalch robwalch merged commit b1041aa into patch/v0.14.8 Aug 7, 2020
@robwalch robwalch deleted the bugfix/drop-bad-audio-samples branch August 7, 2020 17:02
@robwalch robwalch mentioned this pull request Aug 7, 2020
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