From patchwork Mon Apr 24 16:19:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Fran=C3=A7ois_Revol?= X-Patchwork-Id: 3482 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.3.129 with SMTP id 123csp1515647vsd; Mon, 24 Apr 2017 09:19:28 -0700 (PDT) X-Received: by 10.28.100.137 with SMTP id y131mr10333654wmb.76.1493050768281; Mon, 24 Apr 2017 09:19:28 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 17si7441596wrc.33.2017.04.24.09.19.27; Mon, 24 Apr 2017 09:19:28 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 67EC4689891; Mon, 24 Apr 2017 19:19:24 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 602876891FC for ; Mon, 24 Apr 2017 19:19:17 +0300 (EEST) Received: from me.mmu (unknown [IPv6:2a01:e35:2f46:f520:f2de:f1ff:fe47:4134]) by smtp5-g21.free.fr (Postfix) with ESMTP id C951C5FFBD; Mon, 24 Apr 2017 18:19:16 +0200 (CEST) From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 24 Apr 2017 18:19:13 +0200 Message-Id: <20170424161913.12285-1-revol@free.fr> X-Mailer: git-send-email 2.11.0 Subject: [FFmpeg-devel] [PATCH] Add support for 's' type gopher URL X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: =?UTF-8?q?Fran=C3=A7ois=20Revol?= MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" It's not standard but mentionned on: http://en.wikipedia.org/wiki/Gopher_%28protocol%29#Gopher_item_types It's used at least on: gopher://sdf.org/1/sdf/historical (commercial.mp3) --- libavformat/gopher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/gopher.c b/libavformat/gopher.c index 3070b24caf..7d27d6febe 100644 --- a/libavformat/gopher.c +++ b/libavformat/gopher.c @@ -46,6 +46,7 @@ static int gopher_connect(URLContext *h, const char *path) switch (*++path) { case '5': case '9': + case 's': /* unofficial type for audio */ path = strchr(path, '/'); if (!path) return AVERROR(EINVAL); break;