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 extraction of NALu overflowing PES packet #6268

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

devoldemar
Copy link
Contributor

Why is this Pull Request needed?

It prevents error "Malformed SEI payload. X is too small, only Y bytes left to parse" in case when SEI overflows PES. It also adds new test stream, HEVC in MPEG-TS, with variety of such NAL units of different types.

Test stream: mpegTsBitmovinHevc (see test-streams.js)

Checklist

  • changes have been done against master branch, and PR does not conflict
  • functional tests with MPEG-TS playlists passed

PS
In spite of the error video track can be played. Therefore if this PR is approved, the changes can be merged right before 1.6.0 release in order to avoid inconvenience with patch branch.

@robwalch robwalch added this to the 1.6.0 milestone Mar 7, 2024
@robwalch robwalch merged commit 0a49731 into video-dev:master Apr 11, 2024
12 checks passed
robwalch added a commit that referenced this pull request Jun 12, 2024
Revert NALu overflow handling change introduced in #6268 that results in a decode error at 30s w/ https://playertest.longtailvideo.com/adaptive/elephants_dream_v4/media/b2962000-video.m3u8
`PIPELINE_ERROR_DECODE: Error Domain=NSOSStatusErrorDomain Code=-12909 "(null)" (-12909): VTDecompressionOutputCallback`
@robwalch robwalch mentioned this pull request Jun 12, 2024
3 tasks
robwalch added a commit that referenced this pull request Jun 12, 2024
Revert NALu overflow handling change introduced in #6268 that results in a decode error at 30s w/ https://playertest.longtailvideo.com/adaptive/elephants_dream_v4/media/b2962000-video.m3u8
`PIPELINE_ERROR_DECODE: Error Domain=NSOSStatusErrorDomain Code=-12909 "(null)" (-12909): VTDecompressionOutputCallback`
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