Signed-off-by: Mark Gaiser <mark...@gmail.com> --- configure | 1 + libavformat/Makefile | 1 + libavformat/ipfs.c | 12 ++++++------ 3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/configure b/configure index e466f924a3..6ff09e7974 100755 --- a/configure +++ b/configure @@ -3586,6 +3586,7 @@ udplite_protocol_select="network" unix_protocol_deps="sys_un_h" unix_protocol_select="network" ipfs_protocol_select="https_protocol" +ipns_protocol_select="https_protocol" # external library protocols libamqp_protocol_deps="librabbitmq" diff --git a/libavformat/Makefile b/libavformat/Makefile index 983a77f4f2..ed5a7ffc98 100644 --- a/libavformat/Makefile +++ b/libavformat/Makefile @@ -657,6 +657,7 @@ OBJS-$(CONFIG_SUBFILE_PROTOCOL) += subfile.o OBJS-$(CONFIG_TEE_PROTOCOL) += teeproto.o tee_common.o OBJS-$(CONFIG_TCP_PROTOCOL) += tcp.o OBJS-$(CONFIG_IPFS_PROTOCOL) += ipfs.o +OBJS-$(CONFIG_IPNS_PROTOCOL) += ipfs.o TLS-OBJS-$(CONFIG_GNUTLS) += tls_gnutls.o TLS-OBJS-$(CONFIG_LIBTLS) += tls_libtls.o TLS-OBJS-$(CONFIG_MBEDTLS) += tls_mbedtls.o diff --git a/libavformat/ipfs.c b/libavformat/ipfs.c index 4cc65750ed..8daf032dd2 100644 --- a/libavformat/ipfs.c +++ b/libavformat/ipfs.c @@ -57,7 +57,7 @@ static int ipfs_open(URLContext *h, const char *uri, int flags, AVDictionary **o goto err; } - char* ipfs_gateway = "https://ipfs.io/ipfs/"; + char* ipfs_gateway = "http://localhost:8080/"; c->fulluri = malloc(strlen(ipfs_gateway)+strlen(gatewaysuffix) + 1); @@ -191,12 +191,12 @@ const URLProtocol ff_ipfs_protocol = { .priv_data_class = &ipfs_context_class, }; -const URLProtocol ff_infs_protocol = { +const URLProtocol ff_ipns_protocol = { .name = "ipns", - .url_open2 = ipfs_open, - .url_read = ipfs_read, - .url_seek = ipfs_seek, - .url_close = ipfs_close, + .url_open2 = ipns_open, + .url_read = ipns_read, + .url_seek = ipns_seek, + .url_close = ipns_close, .priv_data_size = sizeof(Context), .priv_data_class = &ipfs_context_class, }; -- 2.35.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".