Message ID | HE1PR0301MB215438F247C1E3BF4F09F3AD8F439@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 e20csp3458083iob; Sun, 25 Apr 2021 15:36:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz707vR2SuScE4s9dR5t3S+41CC3pHLBDAFmMoRzlxvw8uROHBIzLHEj9KsMHC0pJqOfYS5 X-Received: by 2002:a17:906:2c55:: with SMTP id f21mr2686503ejh.41.1619390161620; Sun, 25 Apr 2021 15:36:01 -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 d8si2502302eja.752.2021.04.25.15.36.01; Sun, 25 Apr 2021 15:36:01 -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=OGuU7jRh; 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 0BC0768924E; Mon, 26 Apr 2021 01:35:26 +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-oln040092066058.outbound.protection.outlook.com [40.92.66.58]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0B15F680730 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:19 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LzZ5u+VK5++RyPnHyXZnueAl9yzUtUMsRgRXnbbyUhp/FBaa88yjSWOXmhyauocD0nU8rpyQgfRQEGKIGOuG9/8RRkzV/NJ5FQUXgxsIgj1rItcQAzmFFkKVnOHp/kTcYHIeGcKfjhe69vrtxAc24ViWk76Qc4aNIbyLxvkW4pt3PoDOvGWzWAA18cleG19B0VDvF9Y1qny87hOmM6e0U5RxgXOFZ3wUHYM6eOa1/RFI7/uAMwPuCsMJ0mUTajeIQ69Zc+6OUVNlcY9ioa9R6JhTvj46E8GDxxVWG0Hn5rcgYPHqls3S6L6rXmwDE7e7e97EWezPXFacJ2nBYerk7Q== 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=QW9FH2RTHTs90uuzPjrpDL9rNLCRqXiEQDzrYzTkfes=; b=cdNEzP5n1AlMGVUvaOZ66hD3OnVcwA301CpnBW2I5QS6K1+hD3ouBeU6WIwFCEaLRx92phX+o/HwWx3Jj430n6+eSb5uCCO0dwx3QPhKNHKUBn0J8boX98bvFOwmJdMi8B6Z00pfCWarEhq7ctSXExwsJ3dVln2Q9K9SUOWsdQWg1JmmDalwlhtsRNRPN04BIObvl5Pzw66MEV56Q/iueJVSJnDUWEzCh43q0P83du34Aek+hnBRwW1DxUOO6u/4ItODDv2veWLOW4td1tdq9tqPU3oPISTpOJKRg4GPABSgBDGhOMlK0Z1tYrzRUYHKM28AvA9FAuEIOMfSDpa9Yw== 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=QW9FH2RTHTs90uuzPjrpDL9rNLCRqXiEQDzrYzTkfes=; b=OGuU7jRhcCHSGIiJLvrYQpXVPMz0hBoTssEOaqAj8kJCIJFNhOhhEFDc6F1aWiT48T1uZrKX8DDL9EbaiEnstcqmQ3KmOkj+Z+scwkq4oLDRZgv/6h1nxfBiH1kzIdx8mr5Mf/8AbEYLByW3+fqPfTWfEV1fKmToLg1oDrDVW7Mco8pp2+2uywEdxoenQy+JqoU7Z3HAkIew0wcgDE3vFI/UTTLkBht3lBqJO/v4sGaJOIRHQy1czIpIOQNtGKqKuZrec8oSnsYmwtO3q3liTc58k4QRFilUqdVXeVXi9ManDpJwquAFPRHWcnMxl/cfhOhmMaQZ180U/t9AGUTimA== Received: from HE1EUR01FT030.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::48) by HE1EUR01HT196.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::407) 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:14 +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:14 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:ED609FF05F7D003B6FA3906B2F6EE59A92504A084461BB1B4723CF226537B6BA; UpperCasedChecksum:C9E2C22EDD8106EB2416091E992AEE071B6B7CDCFEF12606E5277C0769282358; SizeAsReceived:7572; 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:14 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:20 +0200 Message-ID: <HE1PR0301MB215438F247C1E3BF4F09F3AD8F439@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: [c/wBwps8BUxKLoEBLGbHwfPOOIvbR794] 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-5-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:13 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 67ec2f69-8e1f-4e7e-73f3-08d9083a64f2 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKBTepCewFwVSkfoADfkQpyvQJmww1KlXfmFLrbtsKMohfDFXWldb+9rKWAS74envqjQ8hbUVwPY4GkQu/H4Dor47V3OLX/U4VatUZ6DEjkDJVAnqzvY8gI6lNOefout/GsfEQCPmIKLf8iukfX1BG1WBwqi1dYsiREOndntEZMIx2MD8oJWieyCCnLlMHRt2ooI7IWviN5EO4fCbgWq9fYJTI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nVQxW4ieVBrcLfsNA8jxqkUdhkkSVbaFtO7mzaZfYK07pGms9e53d6jyiCa9IWt3+/nCUduqL9GRsewfsw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67ec2f69-8e1f-4e7e-73f3-08d9083a64f2 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:14.6521 (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: HE1EUR01HT196 Subject: [FFmpeg-devel] [PATCH 06/34] avcodec/dpxenc: 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: 1m9SkZHjhSnF |
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 | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c index a5960334d5..4f2953108a 100644 --- a/libavcodec/dpxenc.c +++ b/libavcodec/dpxenc.c @@ -196,7 +196,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, need_align = size - len; size *= avctx->height; } - if ((ret = ff_alloc_packet2(avctx, pkt, size + HEADER_SIZE, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, pkt, size + HEADER_SIZE, + size + HEADER_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/dpxenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)