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 195EB43146 for ; Mon, 19 Sep 2022 09:46:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 308DA68BC61; Mon, 19 Sep 2022 12:46:15 +0300 (EEST) Received: from shout01.mail.de (shout01.mail.de [62.201.172.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6C8B868BBA7 for ; Mon, 19 Sep 2022 12:46:06 +0300 (EEST) Received: from postfix03.mail.de (postfix03.bt.mail.de [10.0.121.127]) by shout01.mail.de (Postfix) with ESMTP id 129E3A051D for ; Mon, 19 Sep 2022 11:46:06 +0200 (CEST) Received: from smtp01.mail.de (smtp01.bt.mail.de [10.0.121.211]) by postfix03.mail.de (Postfix) with ESMTP id EB96180101 for ; Mon, 19 Sep 2022 11:46:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde202009; t=1663580766; bh=G/dQsMdVX8AWUCQKIN8ZSO78OZECAwJxAf/tYB2rZJQ=; h=From:To:Subject:Date:Message-Id:From:To:CC:Subject:Reply-To; b=3QvTvW6QnEeI+LUIylysoy7j5Asjtui8XRio27uMw1XA3/julZW1ESqcfqFzlbb2d 7S3gvJb6JWqbLxQxBnXcXbtAkw8luprnSDlnA5XAUUk3AZfaLQdFGT+GBfdqMo3Z3B Y1WAuzYL08BxJQpVxkoPoV6TWxtdCJVXXx+mJ5LicjfAPVzG2rnpCfk28sJ3zrCn0p w1aVpOgLprH+sbOY5pTqbGGBxTQK3O5S0qaiech4MlnJSfORi0jKr6huFdEI2Rlenj xmxrq17sW+kEFdIaar/trI+syWpMcQSof0+IddCHX7S/CMZFph3VB/sA9LkQj9CrJ1 47hWMCkyMyAMQ== Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp01.mail.de (Postfix) with ESMTPSA id A626C100416 for ; Mon, 19 Sep 2022 11:46:05 +0200 (CEST) From: Thilo Borgmann To: ffmpeg-devel@ffmpeg.org Date: Mon, 19 Sep 2022 11:46:00 +0200 Message-Id: <20220919094604.4645-3-thilo.borgmann@mail.de> In-Reply-To: <20220919094604.4645-1-thilo.borgmann@mail.de> References: <20220919094604.4645-1-thilo.borgmann@mail.de> MIME-Version: 1.0 X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 952 X-purgate-ID: 154282::1663580765-CD7F95FC-7716B026/0/0 Subject: [FFmpeg-devel] [PATCH v4 2/6] fftools/cmdutils: Print arguments of options 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: --- fftools/cmdutils.c | 5 +++++ fftools/cmdutils.h | 1 + 2 files changed, 6 insertions(+) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index f911c52be2..b6dd73902b 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -162,6 +162,11 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags, av_strlcat(buf, po->argname, sizeof(buf)); } printf("-%-17s %s\n", buf, po->help); + + if (po->args) { + const AVClass *p = po->args; + av_arg_show(&p, NULL); + } } printf("\n"); } diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h index 4496221983..2f469f8c25 100644 --- a/fftools/cmdutils.h +++ b/fftools/cmdutils.h @@ -175,6 +175,7 @@ typedef struct OptionDef { } u; const char *help; const char *argname; + const AVClass *args; } OptionDef; /** -- 2.20.1 (Apple Git-117) _______________________________________________ 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".