From patchwork Wed Mar 30 22:28:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 35095 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c05:b0:7a:e998:b410 with SMTP id bw5csp1058704pzb; Wed, 30 Mar 2022 15:29:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpbyBmYssJyGCNN0oVnfUg++nUP60rOMitaxjPMAEH6dViLf8HBg66sC632bwiEDukOWC/ X-Received: by 2002:a17:907:3f12:b0:6d8:bf7c:7672 with SMTP id hq18-20020a1709073f1200b006d8bf7c7672mr2062531ejc.686.1648679356935; Wed, 30 Mar 2022 15:29:16 -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 ja19-20020a170907989300b006e0db091514si16824265ejc.769.2022.03.30.15.29.16; Wed, 30 Mar 2022 15:29:16 -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=jyLMEl4J; 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 9724468B223; Thu, 31 Mar 2022 01:29:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-oln040092075103.outbound.protection.outlook.com [40.92.75.103]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7BF8C68B07F for ; Thu, 31 Mar 2022 01:29:05 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IcjAeziuFdtIKsZnH8lSF+RfyxctHpvTnI7TPG+t/wXoeq6dYoANiqzz1VyHlHZ36P0XySFRqhm8lBv+e/XTjvxqsanM0VhIYwlX9HcgQim1Y2PGB0PkC0rUaelDh5C2qIaMo4cLWwYnXcesNr8tL+A6iapExl931XXGoxvcdZB9w9cvf1BuNkrTKpsIzqNpwwmZ0GWSh5UJzgHNXoojHc3+NRk7eS6YXpuljo3fmaXVvHEMUJYQ4WD/PG9jn+y95Jx2oD5s8Cbk+4vOh7Fr8hq2b5o+HBMb1pKOm/3ptUGkzRAFeAY8UpCQU+13ezXb50KyHudk8I2eQ1EW7nVpDA== 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=GBpHfpJP/Doigl37OO3depMvXshTUxPH4TwSEbUMSjM=; b=By2/xA6yPJhm0hjsdwKuxJy8ch0FgQXBIu0BJ24gMoLPnync0kXnv/x8FsyNZw3NQfW/+tg/okGdDXyphXo2gP6zz0yebG/RuW9KrLx6fRZp0WOzdDBjUIfEUYcNFN8aH6zOLAdXupoTUCjIw6gNLnKXCmPsKaRBCL6P29DTe1+G1glCNZg+4CiDwdwYEWe/mrWJmFEiqkkWwr33zt7F6RoUeDk8gjFaMUrK1s3zljjdN3ikVdG8WgI6wXT4Vju+9O/1IgDK7VwZtBo7/nR00Fq7TMU7F1UM9hJWDkCf54q0c6eUsu5761WfHa/QRnQaxl8dR84SwEqwtzeeNsAfKg== 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=GBpHfpJP/Doigl37OO3depMvXshTUxPH4TwSEbUMSjM=; b=jyLMEl4JYVUvVeGmXtVmbxUSsEFfLHmK4xa5KoQdBqj1sywNNeqS72mYKh0cWecPHO1G6U9ppV0ipGnQWMfjYz1NjMmJm9jRpfPOIoEgZyDQ9ZdAk5aak49g4n4y29OGeL93uDbyOaNHUvQZpe8lmNOMHEVUP5lZoXLiPEi53SiJGutDtKhcLZ/8k6ef0s+QVS2/K7HN47dbIJ5VWGsTPralw4yFR+2QwQS79Qk54GjsL/xx5ut9r63kWgbnci5k0wYvhtvAlR6e4b1ikwU0MThbfUZeYtWvQovashQB7KRN6NETqqg+HQNvrLjpLIrql4cM17DvStfGBjUr8RIxLQ== Received: from AS1PR01MB9564.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4d1::16) by AM6PR0102MB3621.eurprd01.prod.exchangelabs.com (2603:10a6:209:22::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.18; Wed, 30 Mar 2022 22:29:04 +0000 Received: from AS1PR01MB9564.eurprd01.prod.exchangelabs.com ([fe80::9070:a5fd:e532:bdf8]) by AS1PR01MB9564.eurprd01.prod.exchangelabs.com ([fe80::9070:a5fd:e532:bdf8%3]) with mapi id 15.20.5102.022; Wed, 30 Mar 2022 22:29:04 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 31 Mar 2022 00:28:49 +0200 Message-ID: X-Mailer: git-send-email 2.32.0 X-TMN: [yUhouPWel6qp9akp9GZ3ZQjRYYNj990c] X-ClientProxiedBy: AM6PR10CA0054.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:209:80::31) To AS1PR01MB9564.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4d1::16) X-Microsoft-Original-Message-ID: <20220330222855.531823-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd8342af-0d57-4adc-6550-08da129cb20a X-MS-Exchange-SLBlob-MailProps: +LiGfBxqLEsvqYB/Rrptbigll80VyAn5mhY8b0ndgKP2+OxhSkayaYV5imc4DVUjyAnoBC0sqIkUJqDiSHMKFx/A10V/3irLrROaHue6UiFVvmSU+i9UjIdZswZCbvx6GSNvfeRIoYPXSEDhOUdAsZ0WiDTt0nvPfl8vZ5vclaRzA392kBFPIpJvyyS6FJnI0uG2UC2kBE67mxlAOADnZFEFwkYH1yrukHDkUQ6ldXZ58wrwN5BTq4d8LXdMjim55FemG+e8IyuUPrp23uu4ETMSFSwbjRkdzMIRr0rTyLHg3Q2wrSME1qLu6UnTjp7JxtHqR3u0Gf49ni8tNsYonYZsYWvka6UxzvyOqoIJIftSIp7NOhIlHlIuDyRvve5t7bl7T3VE4CmARlNTQkGBOVnK/Cu0jV9pzbKGEKbLL1WV48gDRa8/q5fhgsE87D1C4Es0jLOmZ8cjrpuTRYHZoCjEPun4B34vtezq1gps6KozYez1/TM5SR7he9b/lSDGrWWu04o4l4+lSVyNwGQJl6jWjeX+HI8moe13+5OwG6CSBTGxkeD5IzM7RI2Vg+3AMtWGLhFZiRCWRz21l7pJQUlN/Jsvs87XXROBmPzswIVRB1q4I1bPgoGACSP1lZYRs2I3Fps4FoQVXQQphURfglrpuMXANXly/9MAWHSs/5vsV2WbAmI5eT+qL0krfjjCPcWzOHNdlxvBk+LXMcTv7Oi+YDr9ZWO7pkZhuuV8/EJJU901q61TIt91MKaoXJ0peevdXQjZVyZ8e4D9ln5rpqzgH2+c4p1v X-MS-TrafficTypeDiagnostic: AM6PR0102MB3621:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 99aATxUFHkLR8A/QY2aUQsLHK7YXDwlhojIxNHKfhaOdEQhBYvQUHWAyzqV+qumrn85c8aJkjrchFCx+3ru9IEYzfktk2cNoNjJzA1wQp8IQy4uSuzFoKE17pys/ItCCXXT2BKkc1ZitQA9/AI2qpSlm71vjjgbIF+02yJLAklyqJ7EuilCKRHHtPObAN4IVTGjyVRyybp692BOgedaZN4grwFALvaQTBJzeG1o2WPwF+P4yC86mttvjfxI1mJUEUzjsa+cGUC1KBve8yX6m2CSTkX266/bLbRWVxOdSkR12DBgTIdwligl3dSZQTRJDWgLEj9eEb1ouFJtZGjY1IqwGRxQLmIeZhI+8QXfnIUmUjaDBoDvviwfkUJw1erV9o67xVzwQzI6vfhqWIXJyMh2xmR9pFNRGyjwylG4Wb3i0OlHBwv1Jz3QaWoOSJRu03FfowYSL765r7uO1ID988FZjwIjUfVsZRA5Fsy+xTXDfAGut6X1OJP9CYLAXNgvFl/EQ5tbo7nrOF1/YM5HCQjxCN00qiFpg4oUgrjewiH5HeFIjFnBoVbqRwlSY/QQR0VavTOccFjhQCOWp6B0Psw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: E0OoFwGD519wWZl9RKglikayczxnmY8Ra5uV3w9v666TUbPsWg3DiLwRZ+mcj3KnPRaENjcfAUphX4O/Sn269g/tC37cPtiRhIGAhMSPHXNnz6ktC/ih7b0hWC9omdEgDznljIRe9bM1K1paooV5GwRWFNSOgvBhCZeMuZ2CY3nuWDi6aVQb2OCZYCAorYY/XYoM3gx+Q0yh4nW6nyRmiSC1jW6646OSEpIBT6snMiVhgEMkcme5hbHeofCyjQpxdgX4lylekODck8Vj5i8srs0T2zHDpv/yyL4AxXSY+Jdxe2vjxFRN117kkFib9DOBpgu8wAWQzI+kednHRuXPllB7/R6AEXiK6wvL+54As5/2K70vMtWFN/Ufki9Josm4aZC5xDRqo2bFP/Xni0nIUzH/fuQBS55BGEWbdnedpFDa2nB3iqz9bs7wdsJ/CdJUqDNotdLVR7r7srieXTclPVJWDhgJy3wZL22IHc/PNB8BernZwfax1p3zzxJK09HZWXdcy5eEkNJK39+yV/TBhQykDbuhgtSyextH3+FKVj/yQTYDGniLFj04xZ3BeRr6OYLNaVYBPTsBbuOaSuv79ZS/hKaVzyo693ItrxwOtnpZ3i60wIsw3kmkd/5FmvnJWAV9VrpnBaLlgUpikEqQ0yav2wqIsnZhsbwDOGDd5DNyew098ZaWKJHdrlSEFg2ayc/6AJHhEyqI3KYOW8NOkj1x8OrBosqjClVLNJgm95Dx5/Z68tpMYOHwsZ/a8h/4f/ZK/CZpG5WXntPo8baKmy8/HE9uKnOxd7WXzb5KvrG/yUj+VCrGugCr3Un/OO+HLgXguIN06P9rUjVzs++A5RA+8ZvzL4USLspcrtxeOc+Y0paNLoq+nepCJMAJ1OU+GCEv8tWIb6Ru+bjlDNK8dVgDwT1O8Pa7TgExCt8M5AYGAeAWZAYkeJT68OD5J/mru+BTNBdfJzVBrwu0qwG/M6X72Q3dA9JdW4ohtKiYxDkROTM7XEg4V0Jl2xlqsONDHeZdHQzC6h1kkVMVZ+EDM312HzdMzPDoIAsE3eCOMatTgghPQkJaFfG8q1XrWSkfyFwCYKGsjEf+2SWxLkBlPunRb6748+AEhMfGEopC/088ShdgtXk3Wlj2vtTv0Cls6UoAh/z8l1eV6/wCakpKeQlxcY5go3lxB2CtnwyC0SkwycDHKqsrDEdgj9SxsYfxDiGHXomHcR2ruFg7IFNLg8e4S+mWOPeEObAmDIeiK8LIPIHOieosMAU8Xefv5022vQ0IlZ9rYnUbE3VExC41AZP89YRw/bFNuHX7XP00pY/86l293j03rLBfhH/iA9dSxswwAiEW8426RGZ5HpaSV1aheOTkmSabqf0j9kugfpyZlEag47r9tUpk5V+zEugfZM3vW1fPK1PO7pdc/JOYfAVQrZxor4yoarO/cYncIe9GoNTV6uTQi7rvchLPh41E X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd8342af-0d57-4adc-6550-08da129cb20a X-MS-Exchange-CrossTenant-AuthSource: AS1PR01MB9564.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Mar 2022 22:29:04.1007 (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: AM6PR0102MB3621 Subject: [FFmpeg-devel] [PATCH 1/7] avcodec/options: Fix AVClassCategory of decoders with .receive_frame 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: /iheiodjdNOB Signed-off-by: Andreas Rheinhardt --- libavcodec/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/options.c b/libavcodec/options.c index 91ab994994..2e05d29e1e 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -68,7 +68,7 @@ static const AVClass *codec_child_class_iterate(void **iter) static AVClassCategory get_category(void *ptr) { AVCodecContext* avctx = ptr; - if (avctx->codec && ffcodec(avctx->codec)->decode) + if (avctx->codec && av_codec_is_decoder(avctx->codec)) return AV_CLASS_CATEGORY_DECODER; else return AV_CLASS_CATEGORY_ENCODER;