From patchwork Mon Oct 7 10:50:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 52087 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:938f:0:b0:48e:c0f8:d0de with SMTP id z15csp1832195vqg; Mon, 7 Oct 2024 03:51:31 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUEnNro6/iI3KVDE8vaWi3duOaxPVWglu5Q54dpDmN/3D8X3HU6tiGWgm1kXC86DNnoZGAlbZSI+e6pgu1yjLmB@gmail.com X-Google-Smtp-Source: AGHT+IFTc19lNkf7mQEHvPxa6JEHABapFXUrefvZdP/Q7JIA/O5QB8O3e1rdkdB4i6SZz5WTniWJ X-Received: by 2002:a05:6512:3e01:b0:530:aea3:4659 with SMTP id 2adb3069b0e04-539ab84a2f2mr5684569e87.9.1728298291528; Mon, 07 Oct 2024 03:51:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728298291; cv=none; d=google.com; s=arc-20240605; b=HtZsMJpYEk0XqYWIgWhoO0SfqFtGU2Sm6M3iSoPJtkPQ5saQTyT0ZMabxfn6FhF+tk mKOWKK6wr+qo0AKPPctaQvdR+koF79a678RQbYuCMZPlx0/2eTkBQVn+TuqUp4MK1dd4 gp0CeQnSgNtpVxoOVmqsLa2hWFekZH+CBIkpWlv6j1nNCs3ps99LRH7ImLGAZv8xvv3G bff8kpmzw65yywu4gy9GebIKpA1FAj3GQCXu8QCtwx50iFa1XWhhdHsY+LCYV4gWF9Pr q8iUZ5uNT49IaeyR+LhSQundat1En5C9Kgx/+KHchzKgWsEYkWRnrATdJ15ed7p7OFNc kEUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=FNaYM5UjXoA7IKRyd5mnK6PK5Zg5U97QsorijV/Ckcs=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=IwgsF2f4O2Ux4173zksjcsfHmGtzx1qLR38ipjXozZko+HkWRFoDj2crBFwfEQz66o dSXyaHVOJGv2fjzcCTAQrOm1wef1XA9iXqdavaePF3miYgSgO6NubtHRvwvPlUfe4pEy Yc+bIiR/FwVOmF8lLyFTp/0xiv4JTfllSV2iCeaJzChI9cFntPoda7Pkl0M2JGNb5+5f cZuHUcWB/ztnWEt82t2EZWlSlr/6dMbZEf9VZF69SuIUZYOvphAs3zZfrG+Ux+YR9me0 4kp/BtPqqFnvHjDRH10C9fe9pKxR8vrAzWSbJ6imaKm9BWvN3tYSFP6qFr3OBvNCR8sf d2/Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=bM11mVEn; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 2adb3069b0e04-539afec2b1asi1617061e87.58.2024.10.07.03.51.30; Mon, 07 Oct 2024 03:51:31 -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; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=bM11mVEn; 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 E36E468DB31; Mon, 7 Oct 2024 13:50:50 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0164468DA36 for ; Mon, 7 Oct 2024 13:50:38 +0300 (EEST) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=bM11mVEn; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 9BB7CEFF for ; Mon, 7 Oct 2024 12:50:38 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id EbvYRMqLpCFz for ; Mon, 7 Oct 2024 12:50:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1728298236; bh=Z4buApuPtV9ZnpzT+h8kBzX3/4b0BeIeqdZRGNpcD2U=; h=From:To:Subject:Date:From; b=bM11mVEnamKixPZvWIV/5gdsWz+1TTaqiatXlVmdejhfNdGtfG77unvD0gSb+EzCO sFX2YARGiU2oKfywn9YH49iEIo/iykhLousQM1DejJuF7pNyPRY5/qbgpEtU1NART2 Pq0t9UF4/PKd1at+WePcNDMYFoAyej9qTYmTFo+lDVjo3/7dxOGK9heBB0BsK4HSoY Gzf6JMRs/gymaJ6vNIHgGN58J6h+z0Wbvn0pUFkzbuxb2RCLhZnflJ5Ekyv0N1ltyd UDL0QN2rcXlGAoFzUl/fwQjVtyL6HKuNGixtOqugYtxkxdJ1laztUqQPDLnhnG8eTT fP7GBdZLzA00g== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id C7F444DF5 for ; Mon, 7 Oct 2024 12:50:36 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 5D6D63A02AF for ; Mon, 07 Oct 2024 12:50:30 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Mon, 7 Oct 2024 12:50:12 +0200 Message-ID: <20241007105016.1597-1-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/5] fftools/cmdutils: group related calls together 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: vALwD0HY6ocd For readability only, should have no functional effect. --- fftools/cmdutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index 9beed94ead..9eb49dbf20 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -551,11 +551,12 @@ static void check_options(const OptionDef *po) void parse_loglevel(int argc, char **argv, const OptionDef *options) { - int idx = locate_option(argc, argv, options, "loglevel"); + int idx; char *env; check_options(options); + idx = locate_option(argc, argv, options, "loglevel"); if (!idx) idx = locate_option(argc, argv, options, "v"); if (idx && argv[idx + 1])