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 EDE7A407EE for ; Wed, 2 Mar 2022 16:04:50 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1FDC468B26A; Wed, 2 Mar 2022 18:04:48 +0200 (EET) Received: from nef.ens.fr (nef2.ens.fr [129.199.96.40]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EE4C668B1A8 for ; Wed, 2 Mar 2022 18:04:40 +0200 (EET) X-ENS-nef-client: 129.199.129.80 ( name = phare.normalesup.org ) Received: from phare.normalesup.org (phare.normalesup.org [129.199.129.80]) by nef.ens.fr (8.14.4/1.01.28121999) with ESMTP id 222G4dqK014088 for ; Wed, 2 Mar 2022 17:04:39 +0100 Received: by phare.normalesup.org (Postfix, from userid 1001) id 7A11EE62AD; Wed, 2 Mar 2022 17:04:39 +0100 (CET) From: Nicolas George To: ffmpeg-devel@ffmpeg.org Date: Wed, 2 Mar 2022 17:04:38 +0100 Message-Id: <20220302160438.4136064-1-george@nsup.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (nef.ens.fr [129.199.96.32]); Wed, 02 Mar 2022 17:04:39 +0100 (CET) Subject: [FFmpeg-devel] [PATCH] lavfi/af_aformat: remove support for comma-separated lists 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: It has been deprecated for nine years. Signed-off-by: Nicolas George --- libavfilter/af_aformat.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) I want to share the delimiter-seeking function with vf_format and add support for '/'. diff --git a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c index ed3c75311a..d2599431dc 100644 --- a/libavfilter/af_aformat.c +++ b/libavfilter/af_aformat.c @@ -62,19 +62,12 @@ AVFILTER_DEFINE_CLASS(aformat); #define PARSE_FORMATS(str, type, list, add_to_list, get_fmt, none, desc) \ do { \ - char *next, *cur = str, sep; \ + char *next, *cur = str; \ int ret; \ \ - if (str && strchr(str, ',')) { \ - av_log(ctx, AV_LOG_WARNING, "This syntax is deprecated, use '|' to "\ - "separate %s.\n", desc); \ - sep = ','; \ - } else \ - sep = '|'; \ - \ while (cur) { \ type fmt; \ - next = strchr(cur, sep); \ + next = strchr(cur, '|'); \ if (next) \ *next++ = 0; \ \ -- 2.34.1 _______________________________________________ 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".