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

Do not split AVC samples on Access Unit Delimiter without frame data #6617

Merged
merged 4 commits into from
Aug 7, 2024

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Aug 5, 2024

This PR will...

Prevent unexpected Access Unit Delimiter (AUD type 9) AVC NAL units from dropping sample data.

Why is this Pull Request needed?

The asset that produced issue #6515 showed artifacts of dropped frames (green and tearing video). The AVC NALs included an AUD unit between each SPS, PPS, and IDR unit. Rather than assume that AUD units are only present between groups of units comprising a frame or complete sample, waiting until a sample with a frame is found before creating the next fixes the issue by not dropping data needed in the remuxed mp4 mdat.

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

Additional Demuxer cleanup to remove unused debug code and prevent leaks after destroying Hls instance.

Resolves issues:

Fixes #6515

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 Aug 5, 2024
@robwalch robwalch merged commit 89ee9f4 into master Aug 7, 2024
16 checks passed
@robwalch robwalch deleted the bugfix/avc-nal-aud-samples branch August 7, 2024 21:43
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.

使用hls.js播放hls时,视频出现了花屏
1 participant