Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Prioritize MP4 demux probe over MPEG-TS #5157

Merged
merged 1 commit into from
Jan 14, 2023
Merged

Prioritize MP4 demux probe over MPEG-TS #5157

merged 1 commit into from
Jan 14, 2023

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Jan 14, 2023

This PR will...

Prioritize MP4 demux probe over MPEG-TS.

Why is this Pull Request needed?

I found MP4 segments containing 2 TS sync bytes (0x47) exactly one TS packet apart (188 bytes). They're not at the start of the stream but since we allow for some scanning of segment bytes this could make HLS.js treat mp4 segments as TS segment resulting in playback failure.

HLS.js should start with the more robust mp4 probe that looks for a moov atom before looking for TS packets.

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.3.1 milestone Jan 14, 2023
@robwalch robwalch merged commit 2762189 into master Jan 14, 2023
@robwalch robwalch deleted the bugfix/mp4-probe branch January 14, 2023 01:09
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant