Message ID | HE1PR0301MB2154186CE372730DCE5E394E8F439@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 e20csp3459256iob; Sun, 25 Apr 2021 15:38:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRFfRbzmp/F1vWu3ZY1rvQpCfla3IcOVx0uOJmJxPJGlKQSpBxW7HyYXP0pgTZKFB/Vny/ X-Received: by 2002:aa7:d541:: with SMTP id u1mr17921627edr.95.1619390300830; Sun, 25 Apr 2021 15:38:20 -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 a1si11600490edr.67.2021.04.25.15.38.20; Sun, 25 Apr 2021 15:38:20 -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=Trq90Rkl; 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 E9ADB689CDB; Mon, 26 Apr 2021 01:35:48 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-oln040092065016.outbound.protection.outlook.com [40.92.65.16]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 21FE66898E0 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:45 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QO/7I3ahFyPKviu2zEZigny+Eox0HWsvhgNoz14Y4pcVr8QSzFCD14lZed5HicHNoPGsgKdX0Mekw3o97nuBctcqNjKMuYUogYXSWv4tarMrAZ0k78OtASbHiTZirs+Iz833F8TsOCUZivRYdnlaMZf6SzSwqo2Zn0j3B3eOiF9C3weX0fEJ4Oc7qELBd75f2jUq75NlWrZEwfzsA7d3tZbagdSsys5Y2RLkwSZb5VmzbwRlobMJ92Nj4nCnRWA1EYU6y4CpD9mZOrZi2Q7k72AVAJNhE35cbbhAmByvApgFZOUHqCMpAWHbGMZRxgE/x/lLnCesZ/VJsHeNBgRdMw== 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=TR7fVPTFTjRiHKF9gPmUcbPnA79eu0YuXIQ4SeEv0Ik=; b=ivezBQm73ku7N8zIi0WYynXPvdanuY8BtDK7GWW78Hodv9uye3Mogj/Km4oChl3BAXu/KDfY+4QYFh7hA+wFO9EvFyB/4gY8tYiekZ59Y6XdB2PoG9C9wMv9NDn7lr4n25RjZJWoQrETqwc1SLGBKyN6RMKZ1UW1aOLK/dXu38rR13XgR7UPUo4sHPAKzDAKboOzZ9xSOhcrSLkk1lv4Uj3Ll7Tc//7cx10Aqr3upGnqIbUKG7qsV9J+oxwj6N04SEBFNaZhw9WW1dPXlga+ZcuK4qRC1W1zRt+Lui4+0KNrL+/zMZ4sDa5cqeIEoOb9Q91uO0sESCUj4IqBxJM85w== 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=TR7fVPTFTjRiHKF9gPmUcbPnA79eu0YuXIQ4SeEv0Ik=; b=Trq90RklCxEYzPhulPXQ+IAKpwYvwsMWjyLAlsWSTGKzpZ6VLq6tCZnVK2GAy+uXg5paTqtI4R35URi0E1Ka9cWjkQvUzx84LDltSQEodeUOSvdF3IJsRmUfqD+G9AFbV8ZoYSeB8tzgLSbDLAm6kUQy5/3BahpHT0X533eS8eWpIgFjOiBgIcsrYRFuGV3IVoMbpKNdxNAD1TKTwuM/ZrYb0S3VwiO6NL4i8ww+7CmLrtlv1LwH2d51i9AORiJcokNYMaFA4OSCWPQrVANO9KwQbTT8Tu8pFgaJuyKUAg5oxz6cbwkyLqRLsF90rOY5fm2+b/wAszG9RyLGEfKWYQ== Received: from HE1EUR01FT030.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::50) by HE1EUR01HT068.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::278) 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:40 +0000 Received: from HE1PR0301MB2154.eurprd03.prod.outlook.com (2a01:111:e400:7e18::44) by HE1EUR01FT030.mail.protection.outlook.com (2a01:111:e400:7e18::170) 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:40 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:E25D28E01BF1E967C297CDAD88BFEA53793408E3CE1975FF8550EEE912D912D7; UpperCasedChecksum:B07705C493216925437DA88CE31B679EF87CB855C9BC78A346C9609BAA69FE0F; SizeAsReceived:7574; 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:40 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:35 +0200 Message-ID: <HE1PR0301MB2154186CE372730DCE5E394E8F439@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: [FZwQwTfIfGMMadguWKZyvCzVIxYxmxCo] 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-20-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:40 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 3aa20edd-f35e-41af-cfe6-08d9083a7471 X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNWJWQ5lR/nEnbarXZJSK/i4ioRHOXMcivXi6OtyeFFCb8AOSDsNZY3IE+kDOSEp9vN2yXpwa4ph5r7jsXbF9xDXwhcKj8VCt6SELkOv22qcgC8UwY86e9YHpI8qobkFjJ3d6HFBxVxIF/KGgnCepeqDrStD7jW58psTR+oen8UdI6KVUMD0hPffOCbgdjFpi0ibJT/ok8WKFO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N+nT1jzhp+I44Hrfi6Xc+sWRUKKRjOc9aK4005terTlooja3wwTOErjyhfUbGajd16F8mNHP7hWdA0VMo8qyiDsH7IZAdsFamLQ4z63SF6aQtWMkW7A68Q/2RGQqN9dW3Q== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3aa20edd-f35e-41af-cfe6-08d9083a7471 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:40.6416 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT030.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: HE1EUR01HT068 Subject: [FFmpeg-devel] [PATCH 21/34] avcodec/y41penc: 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: NZF345zqhK0C |
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/y41penc.c b/libavcodec/y41penc.c index 4340a3fbba..187c8bf03f 100644 --- a/libavcodec/y41penc.c +++ b/libavcodec/y41penc.c @@ -43,7 +43,8 @@ static int y41p_encode_frame(AVCodecContext *avctx, AVPacket *pkt, uint8_t *y, *u, *v; int i, j, ret; - if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 1.5, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 1.5, + avctx->width * avctx->height * 1.5)) < 0) return ret; dst = pkt->data;
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> --- libavcodec/y41penc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)