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 84BE0409EE for ; Wed, 2 Feb 2022 09:55:19 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B983A68AD96; Wed, 2 Feb 2022 11:55:16 +0200 (EET) Received: from w4.tutanota.de (w4.tutanota.de [81.3.6.165]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9E55368AB96 for ; Wed, 2 Feb 2022 11:55:10 +0200 (EET) Received: from w3.tutanota.de (unknown [192.168.1.164]) by w4.tutanota.de (Postfix) with ESMTP id EA6A01060163 for ; Wed, 2 Feb 2022 09:55:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1643795709; s=s1; d=lynne.ee; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=UxUmg+m3EjDVczIvA8DU0dv+rGkVLnliZc0y/tYjOEM=; b=v7ehbTPCvDZ2YelcEDDEVjL+aOQ+xsdq47s9SKkop2ikyl/i/f8hdwONBE+bZ+pV qrV5oECbElrn5QzWisaDxebEK6Zan56LkKF91pnPEdZgqU47bc31DqZkSVYxVZMkBLD hta8DGyQpqLGqq4aY26QR4YZU8tLk3bo2br6yNgJoC5BLUi9sUcB+pobx5qJVnX5kq0 lU+FQVhK25SWLL6rph0E9RG+dUIHzPTccoQ0E3WU4h6Fc56Vf3wWhMUXmkCkYrTu83O Bioi6gkxZPOje7W1cp1eEJh6IuFkxnSk2xlqnKRKM2NaLgfe9BGLkZiCFCaUddx0WU4 Q1WnpC7OwQ== Date: Wed, 2 Feb 2022 10:55:09 +0100 (CET) From: Lynne To: FFmpeg development discussions and patches Message-ID: In-Reply-To: References: <20220201215830.65635-1-markg85@gmail.com> <20220201215830.65635-2-markg85@gmail.com> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH v2 1/1] avformat: Add IPFS protocol 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 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: 2 Feb 2022, 03:51 by markg85@gmail.com: > On Wed, Feb 2, 2022 at 3:29 AM Lynne wrote: > >> 1 Feb 2022, 22:58 by markg85@gmail.com: >> >> > This patch adds support for: >> > - ffplay ipfs:// >> > - ffplay ipns:// >> > >> > IPFS data can be played from so called "ipfs gateways". >> > A gateway is essentially a webserver that gives access to the >> > distributed IPFS network. >> > >> > This protocol support (ipfs and ipns) therefore translates >> > ipfs:// and ipns:// to a http:// url. This resulting url is >> > then handled by the http protocol. It could also be https >> > depending on the gateway provided. >> > >> > To use this protocol, a gateway must be provided. >> > If you do nothing it will try to find it in your >> > $HOME/.ipfs/gateway file. The ways to set it manually are: >> > 1. Define a -gateway to the gateway. >> > 2. Define $IPFS_GATEWAY with the full http link to the gateway. >> > 3. Define $IPFS_PATH and point it to the IPFS data path. >> > 4. Have IPFS running in your local user folder (under $HOME/.ipfs). >> > >> > Signed-off-by: Mark Gaiser >> > --- >> > configure | 2 + >> > doc/protocols.texi | 30 +++++ >> > libavformat/Makefile | 2 + >> > libavformat/ipfsgateway.c | 267 ++++++++++++++++++++++++++++++++++++++ >> > libavformat/protocols.c | 2 + >> > 5 files changed, 303 insertions(+) >> > create mode 100644 libavformat/ipfsgateway.c >> > >> >> Fix all the coding style issues first... >> > Any hints on those? As I thought it was matching the other files (looking > at crypto.c) nicely. > https://ffmpeg.org/developer.html#Coding-Rules-1 And we also don't wrap single-line statements in blocks. _______________________________________________ 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".