summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorMark Gaiser <markg85@gmail.com>2022-04-28 14:18:29 +0200
committerDudemanguy <random342@airmail.cc>2022-05-05 16:20:31 +0000
commit3458651010a68c2384a19ba485e81e22c825782f (patch)
tree0e0ea5c8ad56f4b9fcfcbd971d69a9cabfe7c479 /stream
parent3a4537d40be9a1b11ca1719d7e34b166bcfb293b (diff)
downloadmpv-3458651010a68c2384a19ba485e81e22c825782f.tar.bz2
mpv-3458651010a68c2384a19ba485e81e22c825782f.tar.xz
stream_lavf: add support for ipfs and ipns
ffmpeg 5.1 adds support for IPFS (the ipns:// and ipfs:// protocols). This patch enables those protocols to be fist-class citizens in mpv. Thus allowing for playing IPFS resources on mpv like: "mpv ipfs://QmbGtJg23skhvFmu9mJiePVByhfzu5rwo74MEkVDYAmF5T"
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_lavf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c
index 2269bfba2c..c9e4bd268a 100644
--- a/stream/stream_lavf.c
+++ b/stream/stream_lavf.c
@@ -411,7 +411,7 @@ const stream_info_t stream_info_ffmpeg = {
.protocols = (const char *const[]){
"rtmp", "rtsp", "rtsps", "http", "https", "mms", "mmst", "mmsh", "mmshttp",
"rtp", "httpproxy", "rtmpe", "rtmps", "rtmpt", "rtmpte", "rtmpts", "srt",
- "srtp", "gopher", "gophers", "data",
+ "srtp", "gopher", "gophers", "data", "ipfs", "ipns",
NULL },
.can_write = true,
.stream_origin = STREAM_ORIGIN_NET,