summaryrefslogtreecommitdiffstats
path: root/stream/stream.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-03-08 18:43:31 +0100
committerwm4 <wm4@nowhere>2020-03-08 19:38:10 +0100
commitd0d9ace421ea86c0642c57865c41248df1fe0b00 (patch)
treead8eddfe14ce19925a4fdd168b2d4960e1768650 /stream/stream.c
parent7170910f4c34551809caeba4cf88846e38a5662c (diff)
downloadmpv-d0d9ace421ea86c0642c57865c41248df1fe0b00.tar.bz2
mpv-d0d9ace421ea86c0642c57865c41248df1fe0b00.tar.xz
stream_file: mark fd protocols as "unsafe"
Whatever good or bad that might do. In any case, they can easily trigger UB-like behavior.
Diffstat (limited to 'stream/stream.c')
-rw-r--r--stream/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream.c b/stream/stream.c
index c8b3d34a51..f5f61e93c9 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -51,6 +51,7 @@ extern const stream_info_t stream_info_ffmpeg;
extern const stream_info_t stream_info_ffmpeg_unsafe;
extern const stream_info_t stream_info_avdevice;
extern const stream_info_t stream_info_file;
+extern const stream_info_t stream_info_fd;
extern const stream_info_t stream_info_ifo_dvdnav;
extern const stream_info_t stream_info_dvdnav;
extern const stream_info_t stream_info_bdmv_dir;
@@ -87,6 +88,7 @@ static const stream_info_t *const stream_list[] = {
&stream_info_mf,
&stream_info_edl,
&stream_info_file,
+ &stream_info_fd,
&stream_info_cb,
NULL
};