From patchwork Thu Sep 15 01:52:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Scholz X-Patchwork-Id: 37920 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp26429pzh; Wed, 14 Sep 2022 18:53:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Vl9b2YPEJU30HYuzBFTlbhBuUVT/p2T9x8nexVZqpJ7yMi+5bX1q6RWNT1Dyv29UQCU12 X-Received: by 2002:a05:6402:1d48:b0:44e:c6cf:778 with SMTP id dz8-20020a0564021d4800b0044ec6cf0778mr33730106edb.421.1663206838783; Wed, 14 Sep 2022 18:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663206838; cv=none; d=google.com; s=arc-20160816; b=BckkKtsv212wsgOpBpgs1C+UA8Qkwz+4Edh6+9MpJj5FCywnIokrntCmSdhgfN9gZY gRN8LYtK1BeqDsHcFBN3gNLdP7i+9FqgveLuTDJtjgQmKVBGFt9fCFPNmdT1MWn/SJxZ hoP1XYo2z/ki61TxDf0H7M0Ia04FwQT1XKybNwO9RrZkJKggDBk3X+PXV3GGrriCm8jX WQWWf9QUvYIcTJc9FH7hAt35Yg2Hm1+qX8/nyC9RdB11yRf7Om2XR1x4E8z3J/xGZcok xB4z9VELFXOrbzeJDh2ToNqkx6nXlFiAtdf34BMolQGm8W3LwhzMnqeySNGXjZ6YS0Cs fdlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc: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=df/UdaQ+8foHMnrPRdwILw0IBpzf4XCX1CBOTnGzCVY=; b=Erded/Twyttzm5FdzVjz1B3Bnzpt8YfYzLIiMwcHDf4rras0KGZJSrqzeaFN09qnSS jYyVc58/DOZqWodi5rZUGqwe5tXR6z1k3rvpZvj0tTSMkDSWx6uzhv81kT43ckbBpdyA rMzEv/AW/iykmKKUVdwMJ0X3DpipY8LkriSm/BuFY5qVTWEVLKlWYLJXR2Eva+8+xwHC regYddIvoux9nQtP1TKqvYKv09m+9YsidsA+ZOFX4m/C2PP/iUounSgEuPrKi892xyz0 KIKmgd5l7QkpxnbjSrZw7L3SBcqhHD2GFIpaoKtn+msRBr3hISw+nM6yRcDMLetWhT2c 789A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=SzA49pAj; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id t2-20020a17090616c200b007418e87eea8si10324080ejd.770.2022.09.14.18.53.35; Wed, 14 Sep 2022 18:53:58 -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=@gmail.com header.s=20210112 header.b=SzA49pAj; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E1D0A68BAEB; Thu, 15 Sep 2022 04:53:31 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id EF10568B8C0 for ; Thu, 15 Sep 2022 04:53:24 +0300 (EEST) Received: by mail-wr1-f43.google.com with SMTP id bz13so28515944wrb.2 for ; Wed, 14 Sep 2022 18:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=WqWBHUiNeF1sI/YS0gsrcaVAre7eHUBA4xaJM7qBGXY=; b=SzA49pAj3VP9myq/DXSf5n6p0HJ06RArhSaWHgq3s0VMbnhwv5SNfwQlLk9IRSGTY1 a4G9hh6VYafC+ZK8I3R5GBADdYRaSf/YlV7GFnt15E31K1WvQ1JddU7G079Tgfdl6CND TvcatNTTbk+BKscjPJQbIEXCX6LaTATcq/OsszCkMVVuEuPIzTgD3CCouGHeABCscfc7 srebPrwC88YPLz/U/0xaKOmOd6qz7UeCr6gBo9OTUUVaYGKI/jLGwC4DP4mDTAVraJGF VBwixO+5JoImDccU6uWa1lRhxzXmaOOQshAGoeTB0mWVs0sYkA+9FNZvoZBijrMCKPEJ oYWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=WqWBHUiNeF1sI/YS0gsrcaVAre7eHUBA4xaJM7qBGXY=; b=TIFjQtVOFWtaoV1Bh5fHJLHn9Rv+rpvW7Shixdvk/qvqzoWVGUCm/N36vCBOGqStvs b5Sf/oGTdpJ7mbyQEqptE3iJCzD/pEgTVaq864RtIFUrDtAAXsf5cyN+/00ISpqoGnQP yUquNdFmu2q8jTWKuY8WYjbY8L80112dnJEmCzox/7y0jufJfLdmUY6cRJST58m1Z/q1 puEmLF6nNbn3+Pb8NJhtTblb90ztd9V9Ackz6Rq89/ihZ0hBhxsmsL8BJSIBGb0LbNNQ ryNUYgMiWxt1SYvgv/fXPmYtKtHbIN/xmecGuH6tPAwzFu6I2lyQ0UmG+PmiWVeHZvFl cEfw== X-Gm-Message-State: ACgBeo1rOYvamDDY6C13WOEXMA5Tw67i2vMnHX0CPyEhjmH/SHFU4C9G X/0OV1MPwtf6KHJuuRwogASra+D/1gd0jg== X-Received: by 2002:a5d:64e8:0:b0:22a:bb78:1e44 with SMTP id g8-20020a5d64e8000000b0022abb781e44mr8134279wri.378.1663206804095; Wed, 14 Sep 2022 18:53:24 -0700 (PDT) Received: from MBP-von-Marvin.citadel.scalie.me (84-112-104-25.cable.dynamic.surfer.at. [84.112.104.25]) by smtp.gmail.com with ESMTPSA id x4-20020adfec04000000b002253604bbefsm823633wrn.75.2022.09.14.18.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Sep 2022 18:53:23 -0700 (PDT) From: Marvin Scholz To: ffmpeg-devel@ffmpeg.org Date: Thu, 15 Sep 2022 03:52:58 +0200 Message-Id: <20220915015301.34744-4-epirat07@gmail.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/7] avutil: Fix mismatching argument names 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 Cc: Marvin Scholz Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: H2ixNkLVBL2a --- libavutil/hwcontext.h | 2 +- libavutil/mathematics.h | 6 ++++-- libavutil/mem.h | 3 ++- libavutil/rational.h | 3 ++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/libavutil/hwcontext.h b/libavutil/hwcontext.h index c18b7e1e8b..efca17585e 100644 --- a/libavutil/hwcontext.h +++ b/libavutil/hwcontext.h @@ -249,7 +249,7 @@ const char *av_hwdevice_get_type_name(enum AVHWDeviceType type); /** * Iterate over supported device types. * - * @param type AV_HWDEVICE_TYPE_NONE initially, then the previous type + * @param prev AV_HWDEVICE_TYPE_NONE initially, then the previous type * returned by this function in subsequent iterations. * @return The next usable device type from enum AVHWDeviceType, or * AV_HWDEVICE_TYPE_NONE if there are no more. diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h index 64d4137a60..e4aff1e973 100644 --- a/libavutil/mathematics.h +++ b/libavutil/mathematics.h @@ -111,7 +111,8 @@ enum AVRounding { /** * Compute the greatest common divisor of two integer operands. * - * @param a,b Operands + * @param a Operand + * @param b Operand * @return GCD of a and b up to sign; if a >= 0 and b >= 0, return value is >= 0; * if a == 0 and b == 0, returns 0. */ @@ -186,7 +187,8 @@ int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b); * av_compare_mod(0x11, 0x02, 0x20) > 0 // since 0x11 % 0x20 (0x11) > 0x02 % 0x20 (0x02) * @endcode * - * @param a,b Operands + * @param a Operand + * @param b Operand * @param mod Divisor; must be a power of 2 * @return * - a negative value if `a % mod < b % mod` diff --git a/libavutil/mem.h b/libavutil/mem.h index d91174196c..c9c4fcf1ff 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -667,7 +667,8 @@ void *av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size, /** * Multiply two `size_t` values checking for overflow. * - * @param[in] a,b Operands of multiplication + * @param[in] a Operand of multiplication + * @param[in] b Operand of multiplication * @param[out] r Pointer to the result of the operation * @return 0 on success, AVERROR(EINVAL) on overflow */ diff --git a/libavutil/rational.h b/libavutil/rational.h index cbb08a0baf..8cbfc8e066 100644 --- a/libavutil/rational.h +++ b/libavutil/rational.h @@ -179,7 +179,8 @@ AVRational av_d2q(double d, int max) av_const; * Find which of the two rationals is closer to another rational. * * @param q Rational to be compared against - * @param q1,q2 Rationals to be tested + * @param q1 Rational to be tested + * @param q2 Rational to be tested * @return One of the following values: * - 1 if `q1` is nearer to `q` than `q2` * - -1 if `q2` is nearer to `q` than `q1`