Message ID | HE1PR0301MB2154A8DE566D79FA47ECD6D28F439@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 e20csp3458674iob; Sun, 25 Apr 2021 15:37:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPjJ4YGq7HLWi5xszBj3OdMYSkenV7LEHRPkGj4PhM28fSZ2cwXnkAQq88tPVaKSyN1Gmj X-Received: by 2002:a05:6402:1004:: with SMTP id c4mr17740955edu.364.1619390239865; Sun, 25 Apr 2021 15:37:19 -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 r21si12090363ejc.339.2021.04.25.15.37.19; Sun, 25 Apr 2021 15:37:19 -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="SEI9/Tp6"; 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 296E568998C; Mon, 26 Apr 2021 01:35:35 +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-oln040092065066.outbound.protection.outlook.com [40.92.65.66]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D69B3689910 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:31 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ho9czhCq7BiJEvvnkM1S+TCIK22HC46bsAG10W1kFEkU8sTZFmYvF8VP1470hZWSfU8EAnGJ45s+4wCPgej41oZTS/ZnOzonl9g3Dd++NwLOUPg5I3gPxSHhmApYPOqX/R0HpuJPabBxXnBniAPgUJ4plErblX14El57+GjHMAAP+c6x8SVgx3fxCmR4S0hMz1SbykCy1bXZTGktbp+2v+nLI8oDo7uAicqzbbrMyEMzfThiompjCNe2bJTxQw+N5IG29WcIYgbupR/GYJfInUk/jrcOX7f5m4Y5VL61mQCBlk+i4xwIIATC/ISshFCKByNTt8F9UWo69kHJh2Cuuw== 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=7J3XV32+rp7oBLXSBMEH738muk4ZJSeQ6uqbm97spB4=; b=FsDvcAEk2pxbdN5lTW/PIAS3K8LdK5TTpp8UWyzB+fCDw4D+7Q0WJp7ZA6JopvmP2Pldw+Fh+1jAcaZLDyFWJiQ8q11Hed+sp717VSfDWSGhuK37wbhvkwY43dmEfTc9gtUjGcJ//UhdjpKAuc+odSX3+gGdb9HgmIf7VKKmml6rCZJJiNS7vLfXeGVXR+YlXusecvJdVir+phcR08ePlOSv3wtMbPvkFxVvhRcs9JMbO31KffUitOkGyAZbXnsXnJuLAr6zRvDhCXfPCJZJV6yVWlRyC1srkwlyKkP3YiKEbsWthZh7zJxQ9kf6zRIx4VkD/wCLKtk97/EV4ZAJOg== 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=7J3XV32+rp7oBLXSBMEH738muk4ZJSeQ6uqbm97spB4=; b=SEI9/Tp6/zHa2gM9KZEXcqnAZQ28MM0ki0iaCVpmxFP4oYq3kemOnJlnbdd7SZd7LT8bnNvWnTrHA6Y0mPbakwMPoa6sMvv2j1gVvIMFNnrUs4BJEOl7stsbajBJuh4oSztEH7Uc5IloaBBuQ695x5NaDyPsbWlBTmEx0RzD38vM0ehKre9cMNwJFtUi565JleSDieDXEmrMv8qAQXatZGmIrRgweKmLuE5ppVctpRmagZ5vtifpdw4HkmbX3DFNwrc2IXlBWoVF5rQ6Fww4Gehw37F6wUasTlsiyERteeLduWo3UIyKqpEjDI3kqrDf8oqohfKrNHDSmI0ZcWqFZA== Received: from HE1EUR01FT030.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::4c) by HE1EUR01HT082.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::277) 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:30 +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:30 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:C830FB42BECD681656E113E97ACC933AA2DD0C55E59608ACB797B7C05A3A2FA2; UpperCasedChecksum:78BD0B0C91DEADAB2E678175BEA37DE8701A20F0B3FFAEE0BDDD8B27A439CB10; SizeAsReceived:7586; 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:30 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:29 +0200 Message-ID: <HE1PR0301MB2154A8DE566D79FA47ECD6D28F439@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: [4//g1IooqYGmsIPArlL52JKxCvMMng/9] 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-14-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:29 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 4ec91636-6aee-4a37-1c6a-08d9083a6e31 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKBTepCewFwVSkfoADfkQpyLSgPZ3++pmO5e8123z3tRlYeyjUV596mrcGm6nG2OFDysInMpEcEFtIjt+jRZuuHGDyg+tuOoVIYxzuZxc2AO/d6Ck9MXALaBMddgkTmctwEn4mzYP8pz2Kwbfu9S/6Kz3asPAfUxLmB/QSFjxPBMVm3PyAlil0Dw5dbunBNO+bofIFnM9qRGjF8hIGEjTSdzCQRE+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8MwT4Q5Nr4lUNDlm98pcX7c1PLvos+0WUdbiU/SFWXRWuGjFUtbkaGzllwGyG0UCfYnemfXNPbq3A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ec91636-6aee-4a37-1c6a-08d9083a6e31 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:30.3631 (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: HE1EUR01HT082 Subject: [FFmpeg-devel] [PATCH 15/34] avcodec/roqaudioenc: 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: g6yc5CG9+kgw |
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/roqaudioenc.c b/libavcodec/roqaudioenc.c index c09212d3d1..d33cb248a0 100644 --- a/libavcodec/roqaudioenc.c +++ b/libavcodec/roqaudioenc.c @@ -154,7 +154,8 @@ static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, else data_size = avctx->channels * avctx->frame_size; - if ((ret = ff_alloc_packet2(avctx, avpkt, ROQ_HEADER_SIZE + data_size, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, avpkt, ROQ_HEADER_SIZE + data_size, + ROQ_HEADER_SIZE + data_size)) < 0) return ret; out = avpkt->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/roqaudioenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)