Message ID | HE1PR0301MB2154850C607F1DE9066F5EA88F439@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 e20csp3457654iob; Sun, 25 Apr 2021 15:35:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMoTLuErszKyXrX780CsZDRD/+6lmC0DkmaElIKYss73f4FZXrQmDx8v1OYkRjgWrfeKSR X-Received: by 2002:a17:906:b253:: with SMTP id ce19mr296125ejb.531.1619390116110; Sun, 25 Apr 2021 15:35:16 -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 la13si182266ejc.93.2021.04.25.15.35.15; Sun, 25 Apr 2021 15:35:16 -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="mZhhbo/K"; 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 DFB9C6881BB; Mon, 26 Apr 2021 01:35:12 +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-oln040092066030.outbound.protection.outlook.com [40.92.66.30]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AEFB9688043 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:06 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vtwk61z0HY/e9wPig6f1jLul40VKc2CW0iNrp0hKH5W9wgNO42hwGwP4TO0G4WWz+6nngyhxoePdxDoFz9lsFuxmV/BW9svwF0dGY5YV/wIrmVtPxNgyjk0qWQ8XRps1daem7t4BbiuzqvNQpxFSumwOHeoDVNKXYJXyaVG2NnfJ8b4inYgBtwgJe8AatMxsWTcsLvDSsx5SlhwUqfIf8IzqwXR78pvjNwK/Ud9LInAHysvvnNmjHJljvvABEaXehTfHmycwUozgvvkEcx0DQOVlmur+BkPAGMUBrOKWJBRY+1bDsoimhgpRiGC5VLq0QEmG85noTalcJsFKFq02mA== 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=wKA0PVig1xwUMeeuEVo7DlrUf9NjgafjpbudkwwCrgM=; b=BQeT0pu5R1tQNBMhlZS9V5JQcza9IvfLlbXbeMsCJ8nscDZ2AR9VRC3yI0qPoS6YljYCPUvcgfBpBixucDsJZKA/W7DTmrCjFXnx4dzYuxPhV1VQ0RiMbcFAci4i3aPWZVtRQL9iDiWwUkRaaeVIW4uwJ5kwaMU1TmHIHixGcx/uE7bpITdKn6Cfysoe/+b+iy6GCX6watNhDc3tQnss9d1CDujSUVbWLhKqMl0eF8gkWUr6iBbJyKdCDcTp9plKHgMph8PCb07jqQAbjH9oiBvTByTFvalQ0wLyf1P6IM6gVzx8Y+7lBkeAnbHn6VDWO+eceCID+xaSp0+ZsZqpXA== 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=wKA0PVig1xwUMeeuEVo7DlrUf9NjgafjpbudkwwCrgM=; b=mZhhbo/KyxBsYeCOo61m/34Fa8s9IhwgDK6PpxxGBJJSHKvMyAVDOcEkxtbjyXSEq+VQDCfVdhojAqnUGXgXJsKd8UPDOT1uNA/tGZ+UNdzTPs/W+425prJCVHwdJvk0v1cEc+JXwMVqmyh0mqr+bwWgwXiCSDv0PNiCWjIcMTMhbXClN51QJ5AdozkeHZK580NUEq7oAMDtvY0YxXCCbb9QR9/UoQXCB9SV8tQ+Mt588AHwO6FwasgquPDpRkeizOUvA4jSPzhx6GTg5rpoV8s9+QXDR7Abel4f+khbMOTBl6MUumKfa/iSjNoywZtNEDZeTLzasP8VkTxofU3E1A== Received: from HE1EUR01FT030.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::42) by HE1EUR01HT022.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::219) 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:05 +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:05 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:7962F93F8085D8C20AEABE4A45B20CBEDC8380A0DCBD8F31EF682773571898B3; UpperCasedChecksum:868BF1F456E66953BF53A30B05BA46386662B2BD80EF8D1288FE2B80CE404EC8; 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:05 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:17 +0200 Message-ID: <HE1PR0301MB2154850C607F1DE9066F5EA88F439@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: [cyA+ia9Y4qveCW+3G/OHY1ThVtnk+IIx] 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-2-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:02 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 4839e998-218a-4c3f-7712-08d9083a5e33 X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNWJWQ5lR/nEnbarXZJSK/i4ioRHOXMcivVN9yGKoXmGZZgm2PagkUMp8F2zHBzxYyxdI9AoWPGWINoIhQybmlRImQpczq+TgMh+zQTOXQ9mQvEweyHYSRFP8BckIYYcaeVnKVSTXLUA5ID8wCoXx/JQigCUATCOQT0zH87Xn/b9/inACR9sUfv32QhtZUqi0hCyI0v0pYKfUums2BgqmC8rWP4guWTeApRd0dgep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5Ww/S2Gv8DRYsaH6ZWOHhgos7Wb09KS3M8twMtiltcOFji13t0Q+lnCnvGa8WHR5DsXoraksO/E75EwxwZjQY3ZQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4839e998-218a-4c3f-7712-08d9083a5e33 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:03.3461 (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: HE1EUR01HT022 Subject: [FFmpeg-devel] [PATCH 03/34] avcodec/aptxenc: 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: z0iRtJJU/zRd |
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/aptxenc.c b/libavcodec/aptxenc.c index 60de73ec28..886ebe63e6 100644 --- a/libavcodec/aptxenc.c +++ b/libavcodec/aptxenc.c @@ -214,7 +214,7 @@ static int aptx_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, return ret; output_size = s->block_size * frame->nb_samples/4; - if ((ret = ff_alloc_packet2(avctx, avpkt, output_size, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, avpkt, output_size, output_size)) < 0) return ret; for (pos = 0, ipos = 0; pos < output_size; pos += s->block_size, ipos += 4) {
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/aptxenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)