From patchwork Tue Jan 28 07:44:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gyan Doshi X-Patchwork-Id: 17597 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 DA11544A229 for ; Tue, 28 Jan 2020 09:45:34 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C842868B075; Tue, 28 Jan 2020 09:45:34 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DFAA468B311 for ; Tue, 28 Jan 2020 09:45:25 +0200 (EET) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 486JYx3J9mzQlFy for ; Tue, 28 Jan 2020 08:45:25 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id lf3vFLlnbOnD for ; Tue, 28 Jan 2020 08:45:22 +0100 (CET) From: Gyan Doshi To: ffmpeg-devel@ffmpeg.org Date: Tue, 28 Jan 2020 13:14:45 +0530 Message-Id: <20200128074446.7546-4-ffmpeg@gyani.pro> In-Reply-To: <20200128074446.7546-1-ffmpeg@gyani.pro> References: <20200128074446.7546-1-ffmpeg@gyani.pro> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/5] fftools/cmdutils: switch to av_find_input_format2 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Allows matching demuxer by extension e.g. ffmpeg -h demuxer=string will identify demuxer by extension match if id by short name fails. --- fftools/cmdutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 7954f23430..6e507ab552 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -1854,7 +1854,7 @@ static void show_help_codec(const char *name, int encoder) static void show_help_demuxer(const char *name) { - const AVInputFormat *fmt = av_find_input_format(name); + const AVInputFormat *fmt = av_find_input_format2(name, 1); if (!fmt) { av_log(NULL, AV_LOG_ERROR, "Unknown format '%s'.\n", name);