Message ID | HE1PR0301MB215460714E89925B115240708F439@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 e20csp3459173iob; Sun, 25 Apr 2021 15:38:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7K3Va16vQkTGMXtS9CVyGJWAqxVE8eVc2XS+n8G5GXDqu+Gk1Tnh7arlvWDfRFyznxMXS X-Received: by 2002:a17:906:6818:: with SMTP id k24mr15206369ejr.245.1619390291901; Sun, 25 Apr 2021 15:38:11 -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 e18si11592359edj.485.2021.04.25.15.38.11; Sun, 25 Apr 2021 15:38:11 -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=uHO3WlAu; 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 16D11689A2F; 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 E93086898E0 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:40 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lLxVJK0xypxjbO/O9asO33Usx3k+9hd2IXlJ2hp8mvo9MExu7yhcUc3v7pQ+R7a9AF2lnMgh4gPX7KXZts9G8pbM1J8gsu+LWhmzK2LV3PM50WpsMUOeBck69R3nGeG0UsNtEF4g7pTEwvggBvCUpZ5Ec0Y5YZB2tjbYtimeVIxXbthqyIItdPinjYj/y5pqA778B4HAalnsiiFpNIn1g8Y+d/5ijuQsnYF2sb+Iah0/gLor8U9K/UdbKtxuyKFJBfaSj/k/KgfX88DR3+fhG1gPL2xIL2dj3ACn5RyHxAttg1jKqQHkA8bi/7bEgrdA6J8RRkJSnPmxpK8gw1xxSQ== 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=ByfGvimRlGVN2zKhGiorWs4BE0bjTGZJfOqozjkFd+g=; b=KBpx8b+EvxaY0N0QzXOFtwC5wC9XKnKGYqaWLspix7x3r+Crnu3rf+/L0rUMKvJuezIXnKiN0/L3mQ4i9JYg2oU6VrwHZE0lxNoJvf5cs5JEGUmq4t2ZC1NTtI0ZdXav6qALCab0ZkngVG3xlHFcsMtOHwuW5mvbHZlr7/ahUeT6pSFT5mlLUt0ku1DWlIkVK00fVDSoOpNsB9RSyNpLTyBAC66hHvz4Iml4dr0gjIl9hK8IgsB6hqYjzorgIvR+djklyapc0IgizYl+m3xA6eRwwY6NxCeQdM9xuefjAAc2QZzJ34DUKpR+uWaT2rhj57OWYvcBC4NDgCCN0naIug== 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=ByfGvimRlGVN2zKhGiorWs4BE0bjTGZJfOqozjkFd+g=; b=uHO3WlAu44R/tWxQbyXkWHRIel7tvG6qLnYkYuuLbQkfdAOM+wFvuvfuq7hHM0zTYcPRdBWpZc63nt/HzmaV4DtNVQTxlr/hGGCoJMx8sDGgXAj0neNBVZOI4ExUIBQ7WfM85HMuzMWiNhnFfzt4OTtRSV9XpP+CvGReLMDZhMi71aRzTE8opI4JZHhmCIV5WNwJ9whYQdSgjWhDxMz8Ivog+4zpM9S7q/K/dcoA1P9N1+rby9/4JvAUWaTIubwS7/BhbD9/zXPEp+s3Crwj/TkAOQKTGTD1HL+WNg1oniQUkMo+HawLIUeS6nVzFSiw6Z+OEKO+/ZIqM6Ykh+W0zA== 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:39 +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:39 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:7C4B5026BC510E9C80507797B2C94AEB1C391E341EF79419047292C98DDF9D3F; UpperCasedChecksum:EFA3EE1FDB17AB5292769B79997B86B7C25D863F88E858C6B1941DA0C94FFA6A; SizeAsReceived:7573; 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:39 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:34 +0200 Message-ID: <HE1PR0301MB215460714E89925B115240708F439@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: [q+bRwFLIr4BmP9ubdnxgw03vFvKRIkcO] 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-19-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:38 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 92f93a1c-06e3-4139-0ee6-08d9083a73bf X-MS-Exchange-SLBlob-MailProps: dEG5jEBie8lxmSIYGjeOxtpX/NMoEuKPnwCYZrhK2No7nGooU/58M+4wlmFKh0PQlreBcAmOWl2yW5lsgmlNoVd1JINiud8oZsNZuKAkuHqOwiqaT31df1r09bz+afxRwHM1rE4f5+Or+eWreMWutoC6DCasj8cQeOv6h4JkgUbNuLwSr/3swu3+f9xgm55GgAOura9Yyonl8yWaaM/eOojhwlWvXpTNgdYv8v8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zOGmM0+HPi25O2j5b+cgxFj69mxLejTG84flriW6ERIQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 92f93a1c-06e3-4139-0ee6-08d9083a73bf X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:39.4671 (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 20/34] avcodec/xwdenc: 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: IXESZ33bSEp8 |
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/xwdenc.c b/libavcodec/xwdenc.c index 81cca6c963..04db2ceabc 100644 --- a/libavcodec/xwdenc.c +++ b/libavcodec/xwdenc.c @@ -147,7 +147,7 @@ static int xwd_encode_frame(AVCodecContext *avctx, AVPacket *pkt, header_size = XWD_HEADER_SIZE + WINDOW_NAME_SIZE; out_size = header_size + ncolors * XWD_CMAP_SIZE + avctx->height * lsize; - if ((ret = ff_alloc_packet2(avctx, pkt, out_size, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, pkt, out_size, out_size)) < 0) return ret; buf = 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/xwdenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)