You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
srs/trunk
Winlin 73dd8af4c9
HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750)
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
6477f31004 and 5.0.170
939f6b484b. 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,
577cd299e1, only ignores empty NALU
packets but still reads beyond the memory.

---------

Co-authored-by: chundonglinlin <chundonglinlin@163.com>
2 years ago
..
3rdparty HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
auto HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
conf WebRTC: Support config the bitrate of transcoding AAC to Opus. v5.0.167, v6.0.60 (#3515) 2 years ago
doc HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
etc/init.d Squash: Fix bugs 3 years ago
gdb The identifier "ShowCouroutines" needs to be modified to "ShowCoroutines" in order to rectify the typographical error. v6.0.63 (#3703) 2 years ago
ide/srs_clion Merge branch v5.0.103 into develop 2 years ago
modules Moduels: Refine the description 4 years ago
packaging Windows: Refine cygwin pipeline (#3260) 2 years ago
research Upgrade jquery from 1.10.2 to 1.12.2 (#3571) 2 years ago
scripts Package script support extra options. v5.0.102 2 years ago
src HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago
usr/lib/systemd/system Squash: Support RPM. Fix bugs. 3 years ago
.gitignore For #2136: API: Cleanup no active streams for statistics. v5.0.42 3 years ago
AUTHORS.md TOC: Welcome to the new TOC member, ZhangJunqin. (#3579) 2 years ago
AUTHORS.txt Update AUTHORS 4 years ago
Dockerfile.builds Merge branch v5.0.103 into develop 2 years ago
Dockerfile.cov Asan: Refine asan warning message for macOS. 2 years ago
Dockerfile.pkg Merge branch v5.0.103 into develop 2 years ago
Dockerfile.test GB28181: Enable regression test for gb28181. v5.0.122 2 years ago
configure HLS: Ignore empty NALU to avoid error. v6.0.65 (#3750) 2 years ago