v0.18.2

bluenviron/mediamtxv0.18.2May 2, 2022by github-actions[bot]

AI Summary

Enhances security by limiting memory usage and updates the HLS player configuration to use hls.js with new parameters.

Key Highlights

  • Added limits on AU (AAC) and NALU (H264) sizes to prevent RAM exhaustion
  • Updated HLS muxer to prefer hls.js over native HLS
  • Added liveSyncDurationCount and liveMaxLatencyDurationCount parameters
  • Fixed PCR insertion for audio-only streams

Full Release Notes

### Fixes and improvements

* General: add limit on AU (AAC units) and NALU (H264 units) sizes in order to prevent RAM exhaustion
* RTSP source: support AUs wrapped inside ADTS (#855)
* RTSP source: fix timeout that happens when there's a UDP->TCP switch and Content-Base contains an absolute URL (#897)
* HLS muxer: fix PCR insertion when stream is audio only
* HLS muxer: update primary playlist in case SPS/PPS changed
* HLS muxer: remove progressive flag; add liveSyncDurationCount, liveMaxLatencyDurationCount to hls.js
* HLS muxer: upgrade hls.js