From patchwork Tue Apr 21 20:01:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ivan J." X-Patchwork-Id: 19141 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 769EF44B45D for ; Tue, 21 Apr 2020 23:03:18 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3DFBD68BA23; Tue, 21 Apr 2020 23:03:18 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vm6.ganeti.dyne.org (vm6.ganeti.dyne.org [195.169.149.119]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 34CE268B9F0 for ; Tue, 21 Apr 2020 23:03:11 +0300 (EEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: parazyd@dyne.org) with ESMTPSA id 1E093F60E7C From: parazyd To: ffmpeg-devel@ffmpeg.org Date: Tue, 21 Apr 2020 22:01:46 +0200 Message-Id: <20200421200145.20696-1-parazyd@dyne.org> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org Subject: [FFmpeg-devel] [PATCH] avformat/gopher: Support 'g' type 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: parazyd Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" This adds support for the gif gopher type. Since ffmpeg can work with GIF files, it makes sense to support it in the Gopher protocol. Signed-off-by: parazyd --- libavformat/gopher.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/gopher.c b/libavformat/gopher.c index 3070b24caf..3420abd8fb 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 'g': path = strchr(path, '/'); if (!path) return AVERROR(EINVAL); break;