From patchwork Sat Feb 10 14:50:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 46153 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:a586:b0:19e:8a94:b663 with SMTP id gd6csp1571864pzc; Sat, 10 Feb 2024 06:49:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZUGE17SZ0R4yEmPhSc9tV3tFvrIqLoOUKENLyCeeN3J114bW6WSy1hhQ2lmaLKKGYl3hb X-Received: by 2002:a17:906:7c46:b0:a38:86a2:f366 with SMTP id g6-20020a1709067c4600b00a3886a2f366mr1375325ejp.18.1707576581619; Sat, 10 Feb 2024 06:49:41 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWsR5YmNcBdMNXDU8YFpsmedOtYVigBZVDYqsd6bBDMuiMjW6TPsEaGOQu8X9ZfASjB53iS90lX1CcjB68imOwnScXdla61oV9JC5BafV96zpzsR2AxLOQ9krYoGj6zrwSHU8YOASeR5uDeoOo8ugS+r26CFOvtLrwb6D+A6xLzL5l3Mmf7dGNfz2ksmov0lTRDOIeqe2ib41lH6GzAie4Ct4ftuWbGrC+SffuvtSNUQ1htEL759CKPtnLjzXhgCmaCz6q9+lre/CtHvGwqQEJ/JAr/PGZ4erWDFpNDo+o4HAAhTwBpclJGXdJjS1AOEZwoZBBuLS/KWVUdw7GYRVjP6ElNoOBRvh67q1TXPZ0ggtujwzm7zGpxyfBjC7x67KWC9jBedmuKKSqktNcDy/BFba4t6476XI0Gds1cM6kNRhhYAii3hTPbBT5+cA9BVsl1Pox6sqWQ/ff8MrxC+btXrMyW968QEZx8jigNV3rOABD+j4Pv9vbrrg7g/Djr/WAjbWOMq85w74Po6cu3lg4kibmjs+tM6ExyB/nvbxnb38tIcU63ggT6rnKVy/6jF1k3db1AE2s88KJt0SCW8e5/FYn7nXGOfqt0CjrAL0iFUtKxbC7qLVFMg3L8o8n6OM5g0yTYvmnMTbobEB3XGBV5lIkMgU3LymqVFgp3LaFqhrTqZmXHYKww3TlRM0YLvxsyNbgPNlM3LqXegBGy3S8pUaHMa4YV+PV+S2njyaQiAZth9CEz7Q53Mvhjn4RY3guae72D0tF9LhXH+3EdU1e7WUePR5rAVuyJQ30y/zZXJaZ5p9PAdnGj23DfenuQF2GNkVnMjiXmVd7iU/pya3PHgdwlkgwUMNogTvlsd0JAU41lpEneNrjPjUPX2SX1c6mcmVIrTcRQ3rT4U/KROOW07C1mloqVfpef2fLt5B041FTYBib1/bsbcR/q6QWuuDi9wy XYjxua9r2upmcihkcxHkkh4Oi1q6pPD6FDTscJn2jWB+Nt2P10wlMu5DzfAfwdJeH9LCpmyaiEYbsWlceBNhzzRNtmICTYtIGqbh0Ebb5SCG1n0ksIv1iWPJ03eSO4jsFw1v6PuZmII2Ccmh60w4Sw6Ol8ozGA4nTr6eMl26+a+YHYw4eMtEpBPBsOqU6oOBpcVJv/5O2o3jiOk4L/CF9sRQAC1H4+vjsRSlt6JmPUqcshbN7Z+vWRCRZbDPOk2/xehtCxV16KtQkOfwt6pxm8mzy5600yk2LgEvu45uWB148MyJd+H15/SDWmVN5SGmZUnvPIFlgQgBIotfTlHJnRYl6KEREvIDkFxaMMJyOCu1+VYqJEnwdCj/j8ZzTlEx7zVV1h4UBT0gMRh08z6EX/NydGxw7J+peN50WujVbTEW0iHx4EjoDXz207CjiSvatnDAtlEYWGGJi1TNQqzW9rlokPmbjj7KK9K9yg6H7F62cDfER/PMPba9r1/K34DFKGJOczhoNShq+hdiyygos+Icr1V8IdK3bz4LcxLu1vfBu0u1JsdFEfoM2s9XtSw1nLunj3Do6hYdt0rCs4EK1ZGdsuPfyt2i9VzO3H8gw3OZ7bFXwGjF66cWv2hMjIDaw= Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id lc15-20020a170906f90f00b00a361240236esi1990453ejb.777.2024.02.10.06.49.41; Sat, 10 Feb 2024 06:49:41 -0800 (PST) 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=@outlook.com header.s=selector1 header.b=QdgfJjjU; arc=fail (body hash mismatch); 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=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C45C068D02A; Sat, 10 Feb 2024 16:49:38 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04olkn2036.outbound.protection.outlook.com [40.92.75.36]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id B664A68CC5B for ; Sat, 10 Feb 2024 16:49:31 +0200 (EET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BwbP5tjaJGWDaqgZsVM3D7Iz9dYpHrMLDtospsVZJNlueOosdCzq5OoiDizVbVepPpWS7yCG5QAcrCTr2m195BCVXN11Fx/5MYXCUbYNjPPjr6ozLHLjaXyeqhOnHW1pXdgThxe8lJ7QkT8MmUszF+3LCB/BA3gnWrvqHYgHmWEDWr2/fGIo+jUrngP9wwi/2t8YXPiLuVNU6+7FYOa+7YhA2x9Pjg4PZl3jdhXfbYBEC2qoRT/TSgDa+BV8T+9mpt9Y21K9DDr+btvxQHg3zFgf40CO9Z2HT8tIUGX3DS0sQbRyvlzT4Ja6RNnpb2GoKtWbZUG/HwnmPbAvi2ncCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uRUVuuUs19daVWj9Vu5sZ0zcd2VRy/YGI5FqF8mO6Oc=; b=fGa6TFMgaJg91/G6/Gkwnd7s30cIAoEBqdivEa4q4jFGh7aAmpoN3mu0e8Lg1CEcwAOwMCbA6KwYKXg/Q1fXZIF/WwRiiqTgi4FQFykYUo3k4O0vl+F/PDU6gxCDjfLyVgEGhET8sRb+0mkDW4LZJWfvEktAmB3I2QWOGk1qxcu5A+92njwIKzHSwxqXVlZggkm2eHH+cGmrEidn2t2P8H6zXJPq7Jx9BYhK32jLgJ/ddFI3UU1B4xlUEuQvsMhvXsJH8YaI5KQgKMteArNlJM2SVJsbUBDMnCRO7AhcdUIMrF0tJ/zbonxBD6nykVVLsXYk2fOytNtWbfa2u/l7pA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uRUVuuUs19daVWj9Vu5sZ0zcd2VRy/YGI5FqF8mO6Oc=; b=QdgfJjjUVAITjOydALxZ9E9JFJerxLmlJKppmDnm7RJ1ngJXC+gsvRKkY/z6XSU1j8w3cpOh9lMRUdvSDTONwR1zwIDYwSqas3cJKBQLZaPMlPyJZFRjknrXW+KB6VYtzwk/rLSnOO4/wPRIdtnXIN0ccNC4b2Y2nbBT+72nL8nDaOL26+Z99Z0k7vVkksij6txxqbF6WemFArWqun1z5fsbnDXn8M5ZhPKEWtIGXNxPxtwuRpD2XUsSnboe1LJTDj/AZwwYto9q7y+56yM3SEgPNXvGjaZrUnX5Z0oeU70gKezGk4835eSeotx6EiTiNCmRl0fQXa/3TT8tZfCWKg== Received: from DU0P250MB0747.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:3cb::16) by DU0P250MB0409.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:329::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.27; Sat, 10 Feb 2024 14:49:30 +0000 Received: from DU0P250MB0747.EURP250.PROD.OUTLOOK.COM ([fe80::db07:87f6:7c75:38cc]) by DU0P250MB0747.EURP250.PROD.OUTLOOK.COM ([fe80::db07:87f6:7c75:38cc%3]) with mapi id 15.20.7270.033; Sat, 10 Feb 2024 14:49:30 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sat, 10 Feb 2024 15:50:44 +0100 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240125134425.374-1-jamrial@gmail.com> References: <20240125134425.374-1-jamrial@gmail.com> X-TMN: [TNF9rE4YyB9VHiENr106DW8h5omb826t+u7/w2PicU0=] X-ClientProxiedBy: FR0P281CA0213.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:ac::7) To DU0P250MB0747.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:3cb::16) X-Microsoft-Original-Message-ID: <20240210145045.1298062-2-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0P250MB0747:EE_|DU0P250MB0409:EE_ X-MS-Office365-Filtering-Correlation-Id: f5bec45f-6ef2-4eb2-815a-08dc2a477c96 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5y7cFw/ecOaMFQbNwaabLWky956d4YkgkWKjITo1joOnu0wXnKLc7fRNto2bYNT0G7N2RQVXdHPYefv5AlPWdFkPqb8ba9C0iBMrrPjTnoHJD7B7FAACkZyuM5HGqy1QVfJaYlz90RrXshw4Q9qzBO3mUGLciAiT2xnn9VPQxDozCF4gIg5E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mveLV9NQ+n97J/kcSFSSsfs1fKonGoJW1b6kLsZ9Xx+spgNfW0G+QcNEFle9o35PUcWutsdHIXGjVatxJB1gnbMeS0f8fojbFF5X5+jsdsnYP1oc7tEPIwJ0uxmdmXvV+ukBV8T02S8V+3KfLUXAeGZurroVDADlcsMeej2R82i3IPTmf6F42Kz1/JVng1d80QhMX1rhcTyDWJkKvhCHCmbYMoJvdbuXfp6cK6JShsmHwmdNucscWj5via0iAyj2DnoKjcp28eyO3YhdOAPZKa3ZUmIkurbIuL/SvYDkWKXRRQ9yWySdQaFrE2W0ji0qcD5e4hhGNa22jNeOGByI+Taisaqt2iyirQgLB69QCWGXc3ckIoY+5gii4su0YbSn8pW13RGuGB98dhw8A1z4Eqc7xwrkrkA7jOO0ZeejWFVV4t77gnBu4tqgd65Rd6mzSgY5LQzbIfES/PVbIjqU8R0bO7Z4097Pk1ajmTa2HBC14rJgIr+tDhKDCO5lT6cPTdxbO3iPfoqIK1Z0WQe0kvjk8dSjx8V2ZG04OeG2DwU404QZu/vsPoEIMIAuwaiFJzxKIINatZazRF/E4Co+PF2pTiKSZapaa50+mROHAUjG0K+IfC4cUlx74KMOaWZcXnU4Dd7WAoUpDQ6fWxlM2rgOlHCBs259G0w1CdkRdMjSU+PEADm95ubRvz3DshfNEs3/NN5jnEUfDDFHwReKIvJjJeMqlQLFOuBMm8XDjYf1A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f5bec45f-6ef2-4eb2-815a-08dc2a477c96 X-MS-Exchange-CrossTenant-AuthSource: DU0P250MB0747.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2024 14:49:30.3232 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0P250MB0409 Subject: [FFmpeg-devel] [PATCH 26/27] avutil/opt: Don't use AV_OPT_TYPE_FLAGS for sentinels 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: jYIewCserra+ Make AVOptionType start with 1 instead. Signed-off-by: Andreas Rheinhardt --- One could also add an AV_OPT_TYPE_NONE. libavutil/opt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/opt.h b/libavutil/opt.h index 3ceb4f86eb..0f84cc53e1 100644 --- a/libavutil/opt.h +++ b/libavutil/opt.h @@ -221,7 +221,7 @@ */ enum AVOptionType{ - AV_OPT_TYPE_FLAGS, + AV_OPT_TYPE_FLAGS = 1, AV_OPT_TYPE_INT, AV_OPT_TYPE_INT64, AV_OPT_TYPE_DOUBLE,