Skip to content

Adaptive streaming crashes VLC when forcing resolution lower than lowest available

For example:

vlc https://www.youtube.com/user/ABCNews/live --adaptive-maxheight 1

This results in a segmentation fault in libadaptive_plugin.so. The lowest resolution offered for this stream is apparently 256x144, and setting any value of --adaptive-maxheight or --adaptive-maxwidth below this results in a crash.

This was tested on 3.0.11.1. I haven't got the time to produce and study a stacktrace for now, but I don't think it should be difficult to reproduce.

This also blocks #21828 (closed), as fixing it before this would increase the exposure to this crash and break some existing setups.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information