mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
f921b64ed7
Previously, all stream protocols were a static list in mpv. This is okay for own builtin stuff, but for protocols that depend on ffmpeg it's not so great. Support for certain protocols may or may not be enabled in a user's ffmpeg and the protocol list that mpv generates should ideally match this. Fix this by implementing a get_protocols method for stream_lavf that will have different results depending on the ffmpeg mpv is built against. We keep the safe and unsafe protocols separation. The former is essentially a whitelist. Any protocol that is found in ffmpeg but is not in the safe whitelist is considered unsafe. In the stream list, ffmpeg is moved to the bottom so any possible protocols that are added in the future don't automatically take precedence over any builtin mpv ones. |
||
---|---|---|
.. | ||
av_common.c | ||
av_common.h | ||
av_log.c | ||
av_log.h | ||
codecs.c | ||
codecs.h | ||
common.c | ||
common.h | ||
encode_lavc.c | ||
encode_lavc.h | ||
encode.h | ||
global.h | ||
meson.build | ||
msg_control.h | ||
msg.c | ||
msg.h | ||
playlist.c | ||
playlist.h | ||
recorder.c | ||
recorder.h | ||
stats.c | ||
stats.h | ||
tags.c | ||
tags.h | ||
version.c | ||
version.h.in |