-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
HLS: Ignore empty NALU to avoid error. v6.0.65 #3750
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chundonglinlin
approved these changes
Aug 2, 2023
winlinvip
changed the title
HLS: Ignore empty NALU to avoid error.
To prevent errors, the HLS protocol should disregard any empty Network Abstraction Layer Units (NALUs). v6.0.65
Aug 2, 2023
winlinvip
changed the title
To prevent errors, the HLS protocol should disregard any empty Network Abstraction Layer Units (NALUs). v6.0.65
HLS: Ignore empty NALU to avoid error.
Aug 2, 2023
winlinvip
changed the title
HLS: Ignore empty NALU to avoid error.
HLS: Ignore empty NALU to avoid error. v6.0.65
Aug 2, 2023
winlinvip
changed the title
HLS: Ignore empty NALU to avoid error. v6.0.65
HLS: Ignore empty NALU to avoid error. v6.0.66
Aug 2, 2023
winlinvip
force-pushed
the
bugfix/dji-empty-nalu
branch
from
August 2, 2023 14:08
b1f1eb6
to
2af97e6
Compare
winlinvip
changed the title
HLS: Ignore empty NALU to avoid error. v6.0.66
HLS: Ignore empty NALU to avoid error. v6.0.65
Aug 2, 2023
winlinvip
force-pushed
the
bugfix/dji-empty-nalu
branch
3 times, most recently
from
August 2, 2023 14:16
e0e885a
to
2af97e6
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For the DJI M30, there is a bug where empty NALU packets with a size of zero are causing issues with HLS streaming. This bug leads to random unpublish events due to the SRS disconnecting the connection for the HLS module when it fails to handle empty NALU packets.
To address this bug, we have patched the system to ignore any empty NALU packets with a size of zero. Additionally, we have created a tool in the srs-bench to replay pcapng files captured by tcpdump or Wireshark. We have also added utest using mprotect and asan to detect any memory corruption.
It is important to note that this bug has been fixed in versions 4.0.271 6477f31 and 5.0.170 939f6b4. This patch specifically addresses the issue in SRS 6.0.
Please be aware that there is another commit related to this bug that partially fixes the issue but still leaves a small problem for asan to detect memory corruption. This commit, 577cd29, only ignores empty NALU packets but still reads beyond the memory.
Co-authored-by: chundonglinlin chundonglinlin@163.com