diff options
author | Dudemanguy <random342@airmail.cc> | 2021-05-18 13:20:10 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-05-18 13:25:06 -0500 |
commit | 8fc8df3d39ebe672cbb0a71a45c80c2ea7143018 (patch) | |
tree | 00ffbb49184321bba5a15299c60c9f0d5bbb0f52 /stream/stream_lavf.c | |
parent | 9fbe000451140f0e6937db61a7bebc57faa4d69b (diff) | |
download | mpv-8fc8df3d39ebe672cbb0a71a45c80c2ea7143018.tar.bz2 mpv-8fc8df3d39ebe672cbb0a71a45c80c2ea7143018.tar.xz |
stream_lavf: remove uninitialized http_like array
Serves no purpose and can be a fatal error on certain compiler settings.
Just move the other http_like up here instead.
Diffstat (limited to 'stream/stream_lavf.c')
-rw-r--r-- | stream/stream_lavf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c index 27a948d5e5..2269bfba2c 100644 --- a/stream/stream_lavf.c +++ b/stream/stream_lavf.c @@ -73,7 +73,8 @@ const struct m_sub_options stream_lavf_conf = { }, }; -static const char *const http_like[]; +static const char *const http_like[] = + {"http", "https", "mmsh", "mmshttp", "httproxy", NULL}; static int open_f(stream_t *stream); static struct mp_tags *read_icy(stream_t *stream); @@ -404,9 +405,6 @@ done: return res; } -static const char *const http_like[] = - {"http", "https", "mmsh", "mmshttp", "httproxy", NULL}; - const stream_info_t stream_info_ffmpeg = { .name = "ffmpeg", .open = open_f, |