From patchwork Wed Oct 19 15:05:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 38825 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4a86:b0:9d:28a3:170e with SMTP id fn6csp408674pzb; Wed, 19 Oct 2022 08:05:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+GxFowVd9lAgdNQ6gjfHUZo8x010sLXS5Md2OH8K1gT1oA000O7PhTOxy3ueqG1EaWsGl X-Received: by 2002:a05:6402:320e:b0:45c:ae50:dbca with SMTP id g14-20020a056402320e00b0045cae50dbcamr7998120eda.104.1666191940386; Wed, 19 Oct 2022 08:05:40 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id qw22-20020a1709066a1600b00787796077a0si13792681ejc.429.2022.10.19.08.05.38; Wed, 19 Oct 2022 08:05:40 -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=@outlook.com header.s=selector1 header.b="GLV/VIHM"; 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 DA6E268BDA0; Wed, 19 Oct 2022 18:05:36 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-oln040092074014.outbound.protection.outlook.com [40.92.74.14]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1B42868BC05 for ; Wed, 19 Oct 2022 18:05:30 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UVl9m7qKHYEopXmP1BQbXTr7iBfO0w1biLOx+DlvIQkckCaLT4vMlPtsQ6hcx+LjShD5sYGKJufwTsesfEGRVYzispk7cp06VCsBx3D2CPavIlq4OUp2ZJW89Vl83ErgRed2UsIbXe3q6TDcdSyzvBK6YLPr2kEm+PUR6LQzcKHFxTW2KPUyVnQUFkF50dZNAdnZe/nmyjr/n55EAfEtclrjKZnSf7UP3Gw4ApyOl8j0UtMBuooaiPCBxn8sGoCQHFlqyNyuSi6QShN4vdLtfvF2ai08Z9k1Rm0RHZW6PrQvAmhp/7fZLZnJkkhCSjy493JDOF1l8c/EUU081QGBfA== 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=P9pvFg/9hzZnvRcxumAbl3dtOdC5XtZbGEOZTl7Yul8=; b=aOuGlqItbLjn3dEHTpdQ4LJeosbZ4cj236nYo9ZDLgzhtv19JOoe6JbDvarV0Ai4ziOzPuddOQ+9hbpuUlnxryJhQSogHIHTKaqIPBjkGTrjNQ/ET8cw23GUCNJjlKVaKCWUJ2DFIF5YmPoyXtn2LQjsGcejS2nHRyhwkYpjDy4gglmWbB6bWh24qy5PDKCfceL0NhlCh1igc5GMgipbqrlKNfmp5tOcEXjwu681azkfsvn9VPnWQxPH7hdAuD7LPbXuKbhltnLARGuCENeVroleykPlqow5j6GFQmX1Zgrn9exFaF4VsizqSFoQlfV6pQSZtagK/my0qqt4CrOWdQ== 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=P9pvFg/9hzZnvRcxumAbl3dtOdC5XtZbGEOZTl7Yul8=; b=GLV/VIHM67CaLvzN/4ftSrCp/i90ztRztDUxKNRFCB99XJlGNA88ImuT4J3CSgK/kulCrHVuowKBUic6IWpMSnjV2IlQfiZbq93si9P26Tca6qki5Bd/HZbGriMAKVIziRFO2rA2iBPuih8HwWtLv1XsEYNVT/D0jyroQSWiL1Pk8m7B3G6ZsfS9qTQlsGExuJS/wXigZ3Z1xpL+7aWW0wPoVchTybQvJyLjAz0yhUQSyhCV5EZ6VwMGvi15FAZtzH7L8cAEOmZh3h0FCDEVM0plhctPjvn6GAfKpiYTTDOwS0PAd+bhgChLdSys8HiXIswXGch+/Y03c+jX83a5uw== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by DU2P250MB0189.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:275::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.26; Wed, 19 Oct 2022 15:05:28 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::f9d7:680f:70c4:44fe]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::f9d7:680f:70c4:44fe%7]) with mapi id 15.20.5709.015; Wed, 19 Oct 2022 15:05:28 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Wed, 19 Oct 2022 17:05:32 +0200 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: X-TMN: [cqPe78WAfUlNWty9gjwOLW846P4BOfYXqAGr3EqMzkM=] X-ClientProxiedBy: AM6PR10CA0082.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:8c::23) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20221019150532.780739-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|DU2P250MB0189:EE_ X-MS-Office365-Filtering-Correlation-Id: 60048751-3836-4d9a-8cec-08dab1e35beb X-MS-Exchange-SLBlob-MailProps: V85gaVfRD493MGrb0KP6I2TrOVzYWJd/kF27tPZSDM4LzYhCE6eDcUbiN1O7Cwwh7rm3rLHO2u7Tf+rkLZ6PavzEBMqgD8lkoihLvl2emyY8CXv/B/9aifmCweavwjgYMuzbHVK8pjsstJQeJN//pg2KzsZv/VvTqXoKyq/vIFgwdVxayNpix6ILek7YSrXaXRH81NOxyXcSTbQNC4GDyO3GZ71M39oe8AdrCE6NdG2b+xM7q9ovrHvonSBJKHIAFOVDEyFvLIvtLpyuT/qO9w8vyV+fMTD9GZhnUPSYjhRV7TuXq522OvFp3CRaY45kbuF3qQfxXQGKSgx7/NL2SWVvhf6FkKQ4urqCti7UXkP2opKwI0wTiEVwMZjo7WlDC0bhMn5Y+pJD7OwJ6WQabBCXrK47B2X99spT26Ss9a3CrvKOxJWB345P+ZFI9dggZKEuKmq3m7RapD+l7B4ljmFpU246ySr/fD9EvPRaBuGqRnyL0whV/3eWLg/1Q5iu7y1eHD2YZ5qvCDhwVYVMt3AiTp8PxReeMc3ypA2PFfqfJZsQ5o2TgBz+LNtWh0qVsSB2mnNhts017yPMOCoECsdfJ4IWCXhzSAxq9fdet4cUgtNU/k8CICmlTuonL5oQWrafImUY/dJ2xzjeia/xGvgxas5QkZ01vDS1tKyOJEWwCWOrOjwRJYgfFd5f/g4NxSJyqgqbqG7F5med+KUM/TbcgiUExoJP3jDWr9qXNZ/vxfLCAbVsSUpk6au/MtgVjXfTWITI2/87PE1monr23afQlchNiuAOuvmGgrunpa0TOIYCBV+bv4s9y3imZpOvYRgFw54yz2HZV+15XFl/cA== X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mUyGKwh1tOj/wCZLvDa+FJcMccoAD684oGxHeKCzgYwcusXUYJRbo2AHyTX8HkhQX+/qe8QNytqEC5zkCvc8/g30FtSIjvh6EFB+zXrY1N2kIWAUN5R+5Y9XKqMTui4QV4cp8mo1nYYRABE61FMnGO8AEA2MwJoNAmKrGXV0J43I1CBhBbWCPFeI6EN51a5LrNh2aTWsGa7E/daR2G28q+X4pa2PwPNS731fb65nzmQzw2dIcgEjkHY0hn88QurBLnH94Rr16Qehbv+hC2fuan5sQk7D1gj1Ej5T1nXczs0mCuCsZDRxtZzjiDCMCsGVpNpMxj6w9gVPc0TpC4PevUrCf0uu6jYsa3SReV2NSLtynjg19R/8C8B9SFfz921SlA0q2T/z5coPhaSu4bkdplB2ixZ1mPv/wKfEg7ZoDXZ3B89+ea7ystMcknkceYEGL4yBY8eZo/r4LiGV2H+wBAJ7E1W25JhotPwBmn9xmdeihrGcTeORHXN2oyBNWfeIRxXN6tQILt9NeiLZfhALfYeagKA2osMEAFEFOfHHug0SudghKQd20cEGpCex9A/HrnzgrpZ8UkMNlf8UjDvVyN3gpEEE+x+ioFaKlrti7tpbhxdPqdUvBXjfvFfysrCYFwKMYl1u7KmNP7RSiObK7w1uzbCtE1z71Cm2avhdUN/Fg594EnaXlm3U0CtPuVoU X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DyEbu9GbMoBQqlTohohLYsSerBzGwAxMnF3RkwphafH4PIGz9DzuSiGHdckxoWkJ0xHx491aJZnJ+i9nl4dFAzBI6kMrmHa66I4/nsFyja7+cSJfBGzx/gc8esgTgUQvKWFLOIgCfJDpOqFPWthmTmc6mLn1WJ+Mkbpz2M35zPXl9UOdr8o7XVupz/cR58UR5lQvZ4FxlGdVYkACzw/OLYSKXsBBWaQQ0NJMEQYYYvHzZjqa8rY3CapjBGjuZYh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C6V2+28b8GLcJHgfNT24ZksXr X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 60048751-3836-4d9a-8cec-08dab1e35beb X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2022 15:05:28.6546 (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: DU2P250MB0189 Subject: [FFmpeg-devel] [PATCH 2/2] avocdec/cbs_internal: Rename CBS_MAX_UNIT_TYPES->CBS_MAX_LIST_UNIT_TYPES 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: h/5bIGMMOzR7 This makes it clearer that this limit does not apply to CBS_UNIT_TYPE_RANGE units. Signed-off-by: Andreas Rheinhardt --- Inspired by https://ffmpeg.org/pipermail/ffmpeg-devel/2022-October/303005.html libavcodec/cbs_internal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/cbs_internal.h b/libavcodec/cbs_internal.h index 045df91744..7887552269 100644 --- a/libavcodec/cbs_internal.h +++ b/libavcodec/cbs_internal.h @@ -41,9 +41,9 @@ enum CBSContentType { }; enum { - // Maximum number of unit types described by the same unit type - // descriptor. - CBS_MAX_UNIT_TYPES = 3, + // Maximum number of unit types described by the same non-range + // unit type descriptor. + CBS_MAX_LIST_UNIT_TYPES = 3, // Maximum number of reference buffer offsets in any one unit. CBS_MAX_REF_OFFSETS = 2, // Special value used in a unit type descriptor to indicate that it @@ -60,7 +60,7 @@ typedef const struct CodedBitstreamUnitTypeDescriptor { union { // Array of unit types that this entry describes. - CodedBitstreamUnitType list[CBS_MAX_UNIT_TYPES]; + CodedBitstreamUnitType list[CBS_MAX_LIST_UNIT_TYPES]; // Start and end of unit type range, used if nb_unit_types is // CBS_UNIT_TYPE_RANGE. struct {