Message ID | HE1PR0301MB2154FE6668FFECE9C609C2888F439@HE1PR0301MB2154.eurprd03.prod.outlook.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:5014:0:0:0:0:0 with SMTP id e20csp3459503iob; Sun, 25 Apr 2021 15:38:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdQL4r4WJYb0erTcn8Afk+z9pwJaLzfWODDu88ddLn7D2OEo+VgKY5ya2Ll3KJ6VVYQoPp X-Received: by 2002:a05:6402:416:: with SMTP id q22mr17725978edv.204.1619390336025; Sun, 25 Apr 2021 15:38:56 -0700 (PDT) Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w22si12461068edc.204.2021.04.25.15.38.55; Sun, 25 Apr 2021 15:38:56 -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=IzkeYy9H; 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 53BB8689E84; Mon, 26 Apr 2021 01:35:54 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-oln040092066099.outbound.protection.outlook.com [40.92.66.99]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A218A689D24 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:49 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GZ+x/h0oGclGN+m/VYq92CKumHA4ppL1rbQOQlh6TJq/xKdatdEitnW1QzyMYDRgKFn7gYddW55B5Kr3UhDW25BeluuyLEHECLMB1CM4vrcuoU96eT7OpBUBbIS7BQolcIgtJ02CaBHLVtxgTqeu7UYyz/vbnwZEerag/OG94r5WZsri0f6/pgQM5Ay3LmrxkiqW0Kz4DFoN4nlLxZmumInOc25+6tD1UlAT2rngPBayMyFUJ3ZGjKGFDMSSfMHQ/NPvQq864nh768jP9uBEXnNK31wQldTv0uP8pl7lmf7z+M/tPGNWFO06IMxrcy2dnjBltg/K9PPEtC+iSu2Xyw== 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-SenderADCheck; bh=DhckRg/S2mbVZQJjOFtTXGg/0h5w66Mb63wrzWue6q8=; b=KWHSlCglPj8Veqh8nKV7a1YmqtnTjNfzNiduFXcaF3Zs3W7FOpJcLKLkE4/oJjMzC9CB1LsRAmKVwRLCDf4Z5TGR+dbCLiOfQMOX5j7N46daHp+nQC1hy2RsJkA5HyhxYGwf9EcN9oKAMeJaWZI6xHZ47vI6ZdKn73XthZHSYm53JxCvTpxOUcI2e0Vz5oMz9uKD88F23cOBcChFFMqoby55UT8J6CqosiTXt13z5DrCxl784fXeAd7VVjvcaaXvpE/dG463So7t8XgZ8NXvMgItg6uOPg14o77Xi7UiefQMIjlb+c7HZhmjzxLRLgN+1f05Pvvu3qlHwvbM8TucWQ== 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=DhckRg/S2mbVZQJjOFtTXGg/0h5w66Mb63wrzWue6q8=; b=IzkeYy9HS0r9kDmK9kFHmPmnpV0gBrqqAnuhzliN/sH1FYsgPgwNfymsM89c9fZG9kf7elZNOL4ZByjHHxdhdHlSLAWJ5VfS3r5KtrxnQ3aOgiObg1qsZgKaUam9df4ly4Y6xV4tlrylq7iWCWc/D1cPnxVLPnZ4jvxuSgrwDevImEaavsdJpLXTpD7bIYaZ4omhAYl36AITcQXyfz1r/rWQvfjBafULcwqVqsWoyV34KfSHFC/JyMNs1UvMAsg9WR5Hrwxid+6vidgbRuruiCpCK5SR2MdNjU7WRI98EII7j1/KiuyLZYupeX/+jLgG1dWT/ZInjXthKJhXNlyPCQ== Received: from HE1EUR01FT054.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::40) by HE1EUR01HT023.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Sun, 25 Apr 2021 22:35:48 +0000 Received: from HE1PR0301MB2154.eurprd03.prod.outlook.com (2a01:111:e400:7e18::4b) by HE1EUR01FT054.mail.protection.outlook.com (2a01:111:e400:7e18::317) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21 via Frontend Transport; Sun, 25 Apr 2021 22:35:48 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:3C90DCB8DE4650F37D5086AA98B33D2C58A06302FB274CCCA2C5EF71A51892DD; UpperCasedChecksum:181034680A96D12A8A7420A37F361DB7397FA3DA0744D19432B50A8AFE6A98AD; SizeAsReceived:7582; Count:48 Received: from HE1PR0301MB2154.eurprd03.prod.outlook.com ([fe80::45bb:c44f:2b75:23b7]) by HE1PR0301MB2154.eurprd03.prod.outlook.com ([fe80::45bb:c44f:2b75:23b7%5]) with mapi id 15.20.4065.026; Sun, 25 Apr 2021 22:35:48 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:40 +0200 Message-ID: <HE1PR0301MB2154FE6668FFECE9C609C2888F439@HE1PR0301MB2154.eurprd03.prod.outlook.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <HE1PR0301MB2154D98403AA87DB5AA09D088F439@HE1PR0301MB2154.eurprd03.prod.outlook.com> References: <HE1PR0301MB2154D98403AA87DB5AA09D088F439@HE1PR0301MB2154.eurprd03.prod.outlook.com> X-TMN: [CfY/zViA5BroOIhpNOt37rysJe41gKUD] X-ClientProxiedBy: ZR0P278CA0100.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::15) To HE1PR0301MB2154.eurprd03.prod.outlook.com (2603:10a6:3:2a::22) X-Microsoft-Original-Message-ID: <20210425223448.130684-25-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.193.248.86) by ZR0P278CA0100.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.22 via Frontend Transport; Sun, 25 Apr 2021 22:35:48 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 63dbaf82-c5f1-479a-fda5-08d9083a793c X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKBTepCewFwVSkfoADfkQpyvQJmww1KlXcr+VW7VMqeUEJUFNVHc0Rmvq70Pd2x8AriQezwPCWga04jZEXQIQl8Ij1gE0no6BO3jED96TgzP7THiyS82zg8JFPy7caYC4oO1MJO55tl4yn/m/1cJGcit9RdRWJ6kIl3oqLjXYv73oxwDYTHLzVsU3DGWZKk43v/oPiE0LyjUFE9rr0bzCydKhhfOCqAmGZXLWVeHcVECFDza0Rb8ERftqQjmKOKSHaMEc3kWzFf9iG7ekzqptIE915JjL6meOGwcNp4BQOuK9EC8xd2pI5hd7ASUxshpQzDKe3CmHDQbBS171EzpLVKxhkP53qfjH+ANFpAsHEtZmMZaMPFMxPL9e9ok38p0GPWru96RdeqxiCFls4XeMoEzwdx8xjRSHs5rquhSQ5f7mQdAlo36RYo5cj5p7rZC8+7VAGndMMG2PYce4Y61Ka2AlLBcXeq4GzRT0jKxy6qOAHmPuw+xPP2i09z8alZH/qYyGLulkujEABsN6ob+wun//bKHSUjZOePZpvgmdWngXAF7JaZ2G9LcNQOy9NwqPpSNsvXyV5LM8rdNV8ivL+qyy91K1PizsVDqG3NAaAhH+8daubF3KH9C/RDkFTlb9/3fCn+M7Y75GvG21I2rmjriRftDPzsnEVS35I2SrCm0nK4Dra4+2A7j5BINmb6I7bxV3g+gz49ww== X-MS-TrafficTypeDiagnostic: HE1EUR01HT023: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JFKzxkN8tzR2O4zzeIgjuK9NF0SD6Da65nMIzL1H0K+TcO0Hc3qJhQ45Hnm3SXAAwEhWfPhcnmAKeYpWRWhfV3YNYkjjenQ1jGfJsLQsxYusZbg0MjJ3eetbCX/CgOUYyRwnQWr8gl3hasyX42Zd3j1mQ12e1Y4SV+171azsjG0poHnmrE7J7wuIerP7eXum9pcgHyq39h7KPoIqkK6dHLIcCszVNDKrNaV3Mk8z1K/xHcoRWKG8epjBUebKU3fInEJQespp/gwxmZ0DmdCQxWD0TkWAXhaGmW5wUzENfjThIYijthCMZpnFBX4scUapEmBeIinB92ZS1tcQGs7H1x91bAl3xeStf65IwnXdvkfxJR8Sf6a9IuXZBm5uOLe+F08GX7LE1wogK4kfMD56yQ== X-MS-Exchange-AntiSpam-MessageData: Rxs86xA1gQAEserMSDpqmAGCJaBiGvwQxv+Rf/UIOxQ2Yen1Hhn05Qxt9PKVfHixnoB0SWMVwkjyaDI+P4weOAHF6xFSeBQGjZ3q7i9Tmxn6aaAE/WV70s8UmEWmR7URrz+SZcHkfpmj4NWTCEBxuQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63dbaf82-c5f1-479a-fda5-08d9083a793c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:48.6970 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT054.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1EUR01HT023 Subject: [FFmpeg-devel] [PATCH 26/34] avcodec/libxavs: Avoid copying packet data X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: bNvm/Eo4ytah |
Series |
[FFmpeg-devel,01/34] avcodec/adpcmenc: Avoid copying packet data
|
expand
|
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | fail | Make fate failed |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | warning | Make fate failed |
diff --git a/libavcodec/libxavs.c b/libavcodec/libxavs.c index a83b93b836..6be3d02be8 100644 --- a/libavcodec/libxavs.c +++ b/libavcodec/libxavs.c @@ -150,7 +150,7 @@ static int XAVS_frame(AVCodecContext *avctx, AVPacket *pkt, if (!ret) { if (!frame && !(x4->end_of_stream)) { - if ((ret = ff_alloc_packet2(avctx, pkt, 4, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, pkt, 4, 4)) < 0) return ret; pkt->data[0] = 0x0;
When the packet size is known in advance like here, one can avoid an intermediate buffer for the packet data. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- ff_alloc_packet2() call (for the actual packets, not this end-of-stream packet), yet the size known in advance is not exact. libavcodec/libxavs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)