Message ID | HE1PR0301MB21546267799AC6A748B97D168F439@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 e20csp3458765iob; Sun, 25 Apr 2021 15:37:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNW5HsfQVaA+6bBxwlxomv+e274O8eTD9C/wT/0JYbESgaHvK7FBEfdxBvZzVPhcYwJG0L X-Received: by 2002:a17:907:9607:: with SMTP id gb7mr14872091ejc.380.1619390248985; Sun, 25 Apr 2021 15:37:28 -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 y14si11937263edd.322.2021.04.25.15.37.28; Sun, 25 Apr 2021 15:37:28 -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=HjVue+yG; 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 3AA85689985; Mon, 26 Apr 2021 01:35:36 +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-oln040092066083.outbound.protection.outlook.com [40.92.66.83]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4AF9B68994A for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:33 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XVVSYjNAniR+/dh86LDFksl5voOQNFBllnfRmOWUMXbhCJ0HI4UtCXaZBirHQ9nNEe5+MneodpFQB1W+Fn42BSLXjsQLVFN/iu5X6BS4YvYg3F+8QzL6pPhVn/nFo9iBx6o0eKBsCinoHo9XRUD07e82yuFV+Xf4M3g+ZfYJWbofz0BHP+vqp+hG9F9+gPilDZ2XRyI93H164v5Rd5oImHLzI+aDE2PUGKmnqXhWqgaFbw6eChlTgi9fkwOnIKUGiuk+LK6K3i7sGpkX6HfzGZD14DTMO5+xutvlqx64ZkaSZ+YSePnPvAYPzRL9B3hh2TpKplsBaXBetdgFcb62mg== 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=0zp2Lq8aAm07qzr4Bd380rYoq8iCcbBbVswJPCse6cU=; b=PCfup9BElHz5JOSBb+lB5oEd4tXeQloMywYgV5VFqOLyRdgK7FKmAoHxZISt1oN26W5VVnCAoQDLnJAO5oH3mI5PIcj7d8c0hKpPSpij0QK2LKlPPkaFrEohVph/1K5yLv10ek7heQlC+T+P+ytQ1HONLMbN+n1OFHfUIjBJbJlHkwQGBKPo+CwCmzbA8U4HPESmKrQtEvAXcGHoTonA66CFyJVMPo9c74V2yswq7ZVBF0Llz5vu8JihFNgaqW0VnO/rIvrA3NnQ0eeoOQkSE19sBCH90/BLza63zsChAkD1EvQDIP4SwoZQc5w6IA1BnGLX/3CJJ4CbZR2flSPl1A== 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=0zp2Lq8aAm07qzr4Bd380rYoq8iCcbBbVswJPCse6cU=; b=HjVue+yGXiLv66P9N84z+Z10NiWJ5oZXZm2Dk3ea30JgmqBWN24JLxJzSzZ+hgSheknkJuJK7Eeq4sSjdPN0NSi8ceEY2jXnhXl76Q85Kg1a4x1yjZCF1pYesQK86zcrnZGGMFcZU3xPfoWcTeyM7l7hwW769Kuuc5DO64RAyscdeaKVK5yg2TtnWwwUa95QammOrNULfQbcEE/N5RdT9VYJCah5hotubXWXnzTKqUlvgwNdMHBFmwN9dQyeu8QTzs0RObnVwVCiJbIE/Rm+phdBzMAV9/F4RwZ/WrZLhXC/JRqOjqgklRLY0cCf1Vmzhir21ArXN5Jk4ucjk1Wpyw== Received: from HE1EUR01FT030.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::41) by HE1EUR01HT211.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::412) 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:31 +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:31 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:6A08F87B1EE5FB7EAC91ED86DD3479D981C313D3EABE4DB25D1E13A80B85C9EB; UpperCasedChecksum:017B34F7B22EDA972052C97AF47633116903A0A301855036855088CFABF9B5C8; SizeAsReceived:7583; 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:31 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:30 +0200 Message-ID: <HE1PR0301MB21546267799AC6A748B97D168F439@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: [wB7YJhERc1ZRwUscsVbRysRUCElIrcEe] 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-15-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:31 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 9cd88bdd-5e8c-46d6-590f-08d9083a6f1f X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKBTepCewFwVSkfoADfkQpyLSgPZ3++pmO5e8123z3tRiwroxZNNdcThSam4yWwhtTCoZ8ucVE5RHHBQnXJ3Qk4iJVqrnKgPcScp0pgM8wO68V0BHwLPtr1MN/2Jaxsw7gOP29vGvHZXiD46JgZZ6r+BVQ5plI+Z9H6MhpGu/sMOO46CEPs9fBURxUw/1NXXhsE23XwdzqW3qKM6EH5bZNi1L9cr2NjE4jZV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uxDzg45KRq9M2bMCQZyluLnzspDrIiXgnCecYxW6uQ8CQHdrZB/a11sgdeLiW1riL0GFB1MnAQAWoE+Ym/39KRTA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9cd88bdd-5e8c-46d6-590f-08d9083a6f1f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:31.7135 (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: HE1EUR01HT211 Subject: [FFmpeg-devel] [PATCH 16/34] avcodec/s302menc: 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: rVLmGZRwnSgI |
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/s302menc.c b/libavcodec/s302menc.c index b04a54e482..1dcee7c208 100644 --- a/libavcodec/s302menc.c +++ b/libavcodec/s302menc.c @@ -83,7 +83,7 @@ static int s302m_encode2_frame(AVCodecContext *avctx, AVPacket *avpkt, return AVERROR(EINVAL); } - if ((ret = ff_alloc_packet2(avctx, avpkt, buf_size, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, avpkt, buf_size, buf_size)) < 0) return ret; o = 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/s302menc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)