From patchwork Sun Apr 24 04:42:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 35423 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b9e:b0:7d:cfb5:dc7c with SMTP id b30csp1237859pzh; Sat, 23 Apr 2022 21:44:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVwEidcoOeB2GhYg+pF7I1n0QTxBdAQh6jDXe4Xze1+l2igrvf8RZVS+YrVxlLiy5XdgME X-Received: by 2002:a17:907:1690:b0:6db:325:3088 with SMTP id hc16-20020a170907169000b006db03253088mr11025097ejc.718.1650775444704; Sat, 23 Apr 2022 21:44:04 -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 f11-20020a056402068b00b0041d79899d74si7806841edy.357.2022.04.23.21.44.04; Sat, 23 Apr 2022 21:44:04 -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=TK8RAp1q; 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 4920468B46E; Sun, 24 Apr 2022 07:43:38 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03olkn2093.outbound.protection.outlook.com [40.92.58.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CF37868B42B for ; Sun, 24 Apr 2022 07:43:35 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mmyTMkCrfcEYrc4vnwhvYz5W/zyI/vFyrwr3ebTXgw8EcOohySh6xyRLNDfjVmbn4qPZSD/O44UsHgGdOxoncFeyTqiwp9kk/Z3WvqDR0R6c3jVavK1qX5nifqyXNOjhs4hNbKTAYfL66rpJr8oKXasyS0tt7UkRLRnQTOWJXEsiikRbBXGHbPG0BJV3BvHHHXniScgYXiMbKAam6p8o+2J6zH7FeFxcd/NmyAZYTcMIqVoKvHGfcvf0xyypDbBNMUW4IMzsyoNumyLMxzHbkJGNHXTJnxIjjby3Dz78ie/oWDGTYEvFCm3WF864aOf7nzSPhr1CDCC0O0fH+saOXA== 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=sJ9mogFZ/qVmNidMuuiTVOikhRz1/5MIrAEun3Q0ykE=; b=Is0tR7twTVL03ITjSBKCa6EtrIWMKV2PKSg/qoaHseEHSp0hRo1D7d9Bj939Nmbwk6ildX5gTPShzRBlBkn7mDvjQfi3WBon2Pffdc+vbU2TxApYoZxrKHAVWfq5cYFY214MypSQKe0cOqrNYbqCMwcLNfkugANR6r5vN28A9LZrfgOv1iH1q5Yr3yymnU3kBrdQv2HAx7MvRzyYbCT/JSIt8ZqHJJL9R/zAdJ85iyFQLnvMHXxvGIbveciP4q1wVJIt8wQjZElnfqIEt31Hr8JjAub9tJ1WrwUzRtN1JFql+JpguMzVrqm8H9H7IBmBsCoOCmoNucHkFT2sE9E60Q== 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=sJ9mogFZ/qVmNidMuuiTVOikhRz1/5MIrAEun3Q0ykE=; b=TK8RAp1qFf6jPDwR6Cd6rnH7LG/+YMsFr9n3+R+TfcVRHZgV+rTsoPDS6WDApS9AEm3lC2lYPvy2oo55xdEaAGRCfUY9PuBw05wtKcb2AxWNlSSAc/i59P8Oq42fpxSBAfBiClgST46qcpmh4Wl26lhQkj9tCx1XY/cLBkTZEltNT6fPf8PF0mEMHoj5T56UaQTc5unM2qK/XGCIWGPnEed4ZocTYUJXd8Z0+TJCtVqudxhQYdz7soipdIS3R8jwpwBTaNGUZGsyiP2SccJc6UHeVf9m8YA/BA3NV3xTYTXbS2rUeY2bf7no0okYNDQ77nOkIWTpnLqOI19VTz6DQQ== Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) by AM4PR0101MB2210.eurprd01.prod.exchangelabs.com (2603:10a6:200:53::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Sun, 24 Apr 2022 04:43:14 +0000 Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431]) by AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431%6]) with mapi id 15.20.5186.020; Sun, 24 Apr 2022 04:43:14 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Sun, 24 Apr 2022 06:42:58 +0200 Message-ID: X-Mailer: git-send-email 2.32.0 In-Reply-To: References: X-TMN: [9AHCGqyeUiSYTlZa1yMIouN8AUp0linj] X-ClientProxiedBy: ZR0P278CA0069.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:21::20) To AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) X-Microsoft-Original-Message-ID: <20220424044258.888081-6-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dcb755b3-8f31-48e3-021e-08da25acf146 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiT4+P6zBac8z1eXEhCqSjjDISyHS1/7rZhs7GhKBPi0PAkE9MbnZ4ewRdglcTJw9UcyH1P1cW84zI8fuZUpO0bLUZ5PVXMpNZ7CY3o51k6wK/lqmBxMIRRrnDF8fUScrxsWhLikQyBILd2nnVTxMy11hARjRqxOTJIIOBDhcLJQxhu6P8cHVEphqAZxc0cm0c3kJMM+nhE0xQeUWeiVfbtUhZ2drAJdb0KBH/IZM3YHw6KhjcgQWzmKnUR/ijk5nWWh2BKWyE6UWClHNqchS9HJCMhybG061DEBSo4jwV2DNnODGmHzR1Q6/B9eCCJHXjhh/Uff3UhQ3Uqq6SwkDOCMBEdgrw50GqSWVJ7LnnGNkuPE3GBnqbIdvJHzi0DmXKQDar2iLJ5Q2apfrtgIEEL7lVDzi8lKW5ZlC1nC5Sc9ilY0znJzlauaTU27lyKbVKin1XLN/ZzPChrlVPWhvFmzb1EcxBccGqbq4eMeOUiwsopHqQFLZ05j6JTcftg5qzUG5fe55/YkCiOUsQ5b+o5kuRBrC5Wuzn8nNWOtE9FeJnCpzrnKoO6fttcdFFtERYpAxNA1CDs4IEb1CBE+E4vqGezecmPH7Ctcj9n53XAyt7wX/Pz6F/bm/6Zz4I+KTIiAn0HhlteSpDaclomgheS+sf0Cn/hV+//NMPIBbTN9nDhyTqNTGsU1FE4TzS4t76Ib7Gs+LhyU51I87zuRtaSLZkPuafNP2Fhqkt+XudyjHTLWXkBaFO8ctIaQehJlhEY= X-MS-TrafficTypeDiagnostic: AM4PR0101MB2210:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 733QBC/qN89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enant-Network-Message-Id: dcb755b3-8f31-48e3-021e-08da25acf146 X-MS-Exchange-CrossTenant-AuthSource: AS8PR01MB7944.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2022 04:43:14.1033 (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: AM4PR0101MB2210 Subject: [FFmpeg-devel] [PATCH 7/7] avcodec/xfacedec: Add AV_CODEC_CAP_DR1 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: LSDazqhiBrV0 This decoder uses ff_get_buffer() and does nothing weird (it does not even rely on any alignment of the frame's data/linesize). Signed-off-by: Andreas Rheinhardt --- libavcodec/xfacedec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/xfacedec.c b/libavcodec/xfacedec.c index b103b5beda..f15bc2d773 100644 --- a/libavcodec/xfacedec.c +++ b/libavcodec/xfacedec.c @@ -180,6 +180,7 @@ const FFCodec ff_xface_decoder = { .p.long_name = NULL_IF_CONFIG_SMALL("X-face image"), .p.type = AVMEDIA_TYPE_VIDEO, .p.id = AV_CODEC_ID_XFACE, + .p.capabilities = AV_CODEC_CAP_DR1, .priv_data_size = sizeof(XFaceContext), .init = xface_decode_init, FF_CODEC_DECODE_CB(xface_decode_frame),