From patchwork Thu Sep 22 02:03:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marvin Scholz X-Patchwork-Id: 38145 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp1411pzh; Wed, 21 Sep 2022 19:06:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tAc2NrqFV3kXIMcAsDuLYA1I7xU5VUN0O4TL/DwNPeaqUs52emeXI/itH5DBN6gthb6HQ X-Received: by 2002:a17:907:16a5:b0:77c:e0f0:1f25 with SMTP id hc37-20020a17090716a500b0077ce0f01f25mr853718ejc.217.1663812282374; Wed, 21 Sep 2022 19:04:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663812282; cv=none; d=google.com; s=arc-20160816; b=oSicUwCfJAhZJDmlq3h0neCb0/PuVUY0BzhhyK0ZoRcDj0nxH/7ogd9Ec88t29VUsl dBe3Z8CLlBSb9G4X1YsfC27qDOxDkEFKNYho6IhJC43ZGUL2ZjqcXk6En0UFuJcp8ZW4 ZxZYr4AS0KllWJwRo3lwuF75GRuq02tksBX7ghRbQsApV6E3pD8yOO0BReu56RmV6DKw QTi5vdosFstYKD7+SORplUexKE9us+lUHV/nf/wjsoyQxtQKQPW2+MtzRLrgstMMuh7X 9E8c0Z5s5ExMctohCTN0Iq1CKlTC28iLF4/FOwkvuI8myk6O3UiO3ngeavjx/lNaVV8D v3kw== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=df/UdaQ+8foHMnrPRdwILw0IBpzf4XCX1CBOTnGzCVY=; b=t4i0PeuLTlzfytg7rjzH0ys/sTPIbekGqRTx9xJuSHo+2ZcaZ8ibqXZbQ9edEaHNFG 76KyR3/6xTsshbyswWCQ3hvTywlOV8qeUmDngwtSoPR1Vh/u+QUHE1IlkHJG08vd+Sl0 RwJW+WS+5WAzsAkS0qfn1HEFjpviSVMe/eWj9wSclKLYDMf3zHHLQ6GpaX2OPiXr3gMs lEv8281ph+SIRx3rLNchNt7xjyTLHaPekfULtY2vxg3mK25zaaeBA2GispFf5zyJQWQc ALOivzAb1Et8XVFjWhAxzMPKu8gLX73m9CKH/AqtoQYoCz16mlps3rXEda4umQVCifdu XB1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=qsqRMlyB; 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 u12-20020a50c04c000000b0044e3cb19d70si4033988edd.271.2022.09.21.19.04.41; Wed, 21 Sep 2022 19:04:42 -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=qsqRMlyB; 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 CBBA068BB96; Thu, 22 Sep 2022 05:04:14 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 277FC68BB83 for ; Thu, 22 Sep 2022 05:04:07 +0300 (EEST) Received: by mail-ej1-f48.google.com with SMTP id u9so17911799ejy.5 for ; Wed, 21 Sep 2022 19:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=WqWBHUiNeF1sI/YS0gsrcaVAre7eHUBA4xaJM7qBGXY=; b=qsqRMlyBUjiPrhKsmenbC3WtLu7mRe8+dowYnvLJ471lqBAVylEEfrrFoKeBul+vzc fupKhddrcp5oWqdrg+WOqXLhGs91Fpoy+IvRz7pFI8IN+pq7waOEVdxwD536huCnAa+s Zh3UwmRBVBV/ITlV/PbACPsJcXs0c7+FGBZb4F3xgTtyft5Wy+TE2u6gclO1hHg8j9WI 8WtD929Fr8Ei6Tge7R5MpZO23u5Y3i1qXaH/nlW1eiANh4F7OZOXtNZ7eoafhiZPRiis bOtr9ydXa9d+LWqid7EYrqT8u3aW9hvqiq2ykkY6LORHqTkwY+zsZTLDBIsf25Zf1GUg sVMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=WqWBHUiNeF1sI/YS0gsrcaVAre7eHUBA4xaJM7qBGXY=; b=Jjks10zsT0tvc7H7GnJKxsk2dp/FxI6qMpNVJAlXwoeh1D7/8O9sMydE8iUq1hMP2j AHtgt89rKc53/AHWykZIm0Mr3BlcijfXDmHljurDArgAWP+5CAza8mklm0S+yx08V01K 9Kxsxbo1Ep/q52efenM04d5TS917uhDB2RJd1k2rARzOR4n0PDxhX16fb9e98QvHa9Fw qciDI4ncE9xVPPnLAtHk9qzCoTPuobnKxcqLTFcer4ngzxlwoB0H09wS+4PxF/Qef1rw Q9Gy2wBICJlXgEItN03NcS2Gqex+yVuoByhyjOnSc/81oPArlzV+3swJ0/+UP0RPEjTN hIKw== X-Gm-Message-State: ACrzQf3604FxPgfS9rGYX9ZlnutQpkK3uu7ElTDeTCvSTXJzRi2uJ7mm feXLKENgfRJYqRkGxofdWJdD7IebF9Y= X-Received: by 2002:a17:907:1df1:b0:779:4f57:6bb2 with SMTP id og49-20020a1709071df100b007794f576bb2mr874867ejc.407.1663812246633; Wed, 21 Sep 2022 19:04:06 -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 b10-20020aa7df8a000000b0044e01e2533asm2836847edy.43.2022.09.21.19.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 19:04:06 -0700 (PDT) From: Marvin Scholz To: ffmpeg-devel@ffmpeg.org Date: Thu, 22 Sep 2022 04:03:57 +0200 Message-Id: <20220922020400.46715-4-epirat07@gmail.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) In-Reply-To: <20220922020400.46715-1-epirat07@gmail.com> References: <20220922020400.46715-1-epirat07@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 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: RX80JDJZ5XGR --- 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`