From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 4B84D407E8 for ; Mon, 31 Jan 2022 13:53:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2D5F568B2AA; Mon, 31 Jan 2022 15:52:49 +0200 (EET) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6FF3C68B14E for ; Mon, 31 Jan 2022 15:52:39 +0200 (EET) Received: by mail-ed1-f42.google.com with SMTP id c24so27169789edy.4 for ; Mon, 31 Jan 2022 05:52:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OqSFBB+M/y3Co3llCm5S/qZidT0/tpAv37YCFf5wa4E=; b=GfN16NNezOzrfdCqVtRNlPRkkNwlEhTTDcVUZbC72RWr0ajhDe1EF5td7X+jtBj26a 8PRjs0zgriyOO50qmoRGrKP/asPbJGcKkIfR6E7CUraMkFIb5Mwe/iVmfYCR3QIEJ2S9 yEon96e86TdUb19Y4nCWT586xtbAR0ZkSiiDXQwhoqfSeutlhnObk7CwxZMTeRADQupm gLCdj1HGhOBN4i7DXAPe5dolXmfgK9570G+YKHPKn3OFJc70rEw3I8a/KwX014eR0OFZ 2O/zsGiutsE2JWLw7WQmOU7jQOnS0bGKkW+yFpNYYCtaB/NT6m3NfxqokrUGZD1an46m KBLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OqSFBB+M/y3Co3llCm5S/qZidT0/tpAv37YCFf5wa4E=; b=LVdn+1CTLRDnHiCa69JX7e0mu0Xa6LGeuRVSlDTGskxLA5sQY8c66x7kEjZ5HF2JIv Pr/rdyNNBxFSMyVjSxi8WouNpgBeBRJfqg4ZOAlaMoLiUrFifq/HTH35m+gUCmPDQwmu EOWajRbE/Wt0zbTjauz0LE0HpemXr8nfWOV9/bMhKArnSw28LHhHthWc0DZ2+Y8YWhds f0qoZ3UuzhVeGiy9XrHmJWHHpmUG5i/pa90toVEOjDL+xAmV7Ouxd5tmGnkEYvjMQyM/ Anfy/SrhLL5/5k401S46xzRQ4v9CBYYlNUxODcnk2BXSFcrLW6fRTd/JmLWJZ0t+b01Z 1tBg== X-Gm-Message-State: AOAM530J6ieShLFm5tX7W6eUoq1ccQ7+f4FQfxSAazs9G8R54+oGxImb YMCOQGyEO6cXRaepxUyBaLVZAvdd0xUFzg== X-Google-Smtp-Source: ABdhPJwcNfncRCIgc2tM1b6R8kZieglkiORI/KZVuS/ZRWI7hq7LtE4SsjM5o4f15LrfPl6DItoSGQ== X-Received: by 2002:a05:6402:2741:: with SMTP id z1mr20772168edd.264.1643637158570; Mon, 31 Jan 2022 05:52:38 -0800 (PST) Received: from localhost.localdomain (ip60-253-211-87.adsl2.static.versatel.nl. [87.211.253.60]) by smtp.gmail.com with ESMTPSA id l19sm5431885ejq.139.2022.01.31.05.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jan 2022 05:52:38 -0800 (PST) From: Mark Gaiser To: ffmpeg-devel@ffmpeg.org Date: Mon, 31 Jan 2022 14:51:13 +0100 Message-Id: <20220131135116.14035-3-markg85@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220131135116.14035-1-markg85@gmail.com> References: <20220131135116.14035-1-markg85@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/5] Fix up IPNS support. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Mark Gaiser Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: Mark Gaiser --- 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-request@ffmpeg.org with subject "unsubscribe".