Message ID | HE1PR0301MB2154F1BBA15C6BBE81DD17D58F439@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 e20csp3457927iob; Sun, 25 Apr 2021 15:35:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykUTnmopNEiimaNo9hVlXWok95nkOAK9iXgxqMRm4pt3cGUFx4r2/DP+n7wFMce6xD/How X-Received: by 2002:aa7:c90a:: with SMTP id b10mr17519097edt.276.1619390145540; Sun, 25 Apr 2021 15:35:45 -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 qp21si12077682ejb.407.2021.04.25.15.35.43; Sun, 25 Apr 2021 15:35:45 -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=jrdB7Y8m; 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 055F3688342; Mon, 26 Apr 2021 01:35:20 +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 E056E6882CB for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:13 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WTZ3g1/7vw8iGKOcFmSsvj5X9UkvYcLuiVNDlPgHbojDGJwUGPq3/IbUmpeL7XfdN9QSlIjsP5Z1zKzOQmXwBn5Nt8Z7vss2Gy9II5hFKks9gOautf4tu1HL4TqKKV7ixuSiFtxlstUhezS81ZKFZqiN8LjyiJ5ZUGxziY+xFp2Jxl8HV9okdEuFK4o49heyPyPjmRTwcEnFe4m882XtAvXKviqN8lespz+x4b83RXDBc8mLpNA6W+cq0xFtoJMOXrbU7/Wmhp43aN3vlNsVp96AntZLWvLtabpcrozajcGSfMMGuVGMLlcHhDBVIBTy2enxCdKbHN+AbSeXHell/w== 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=pv3LJb/S59C7dX9bz014FMnKs+scc0HgS1DLLdn69NU=; b=PTldwaBlybWOPltmMThMqejkWtC/EiRVeJsThkxSFj1u3108MGY9YBANDnXMf6zI9SlyrEH42kTMyC3V1ZgB66xn3RwWBPE4E06BRzCC6HRXVeu/oK2nRhpaEAP8EcFRbiJE8fqkVGG7tsKuo284dVfLtpC76mZWhmLWt0AzDXEBc7vt6b+y8Ica5jfBleJgSsASFMx0pPnBFaet1a7J/xqb9zd71MLny7z29paewhz3lLOeUw6jklR7pcpn4VjStjiqULO7f3gfc19kFvHrOvpW9QIghkruMJ+sC+09IKCuAcOfAhbn4C20OlluaprTEaSzuuTNDgKZHcUQ7p+J6A== 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=pv3LJb/S59C7dX9bz014FMnKs+scc0HgS1DLLdn69NU=; b=jrdB7Y8m7e5WsTaPNkzzrFn3ST4t/VrlpmbJeV2qxVQ3lM1JY/mEyBpKxpRHRsYa2kE5JeboTldk4o6XzfvdSJQPqsMiGfnLXRBkqDcDHOs9EMVV5EnfFZuEvxYugUxvkXYtXivximZzf4hsNMil0Lr0WPyfBclVJCUNkFgEywc4yWYAfhCwVeWcBRhwJ+y3vWUaTha1YbK0LTYfMPTMNl4NFXWXYZKK3OQeDJrMsTQIZYMGhLyQNDgyNkTzAXG5piUzVxU0VhfrRCqVzNW6acuSjb6IVMjz4hE2AkGYo4lo6+5MclAv/PCmld20Tdp1KECtAaER/1IPGDB631ctMA== 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:12 +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:12 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:8C5B55E08113FF8E0F1DDFEE8B0C3F635057E49FFFC0D67FA9F8326A5E76FAF2; UpperCasedChecksum:57751A9EBDEBE6A44D22D258F87830D547667234FA5D7EAEF11DA122C175E66D; 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:12 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:19 +0200 Message-ID: <HE1PR0301MB2154F1BBA15C6BBE81DD17D58F439@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: [NXKWANdPVKT3DT+d7g0i6f2CUdlll3lp] 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-4-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:12 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: c2971bd4-d70c-45bd-1f37-08d9083a63d1 X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNWJWQ5lR/nEnbarXZJSK/i4i6upxEzFgJTr9iZEFBWYAgLyKyZRY+fQXacdb+GyZLfNHRBf7leDNQLOiqhN+Sd0+nWlk7mkbwEYIdZDZ2XxP83FtZzu6HiFOV+jpmBGJLFW6zkLylUxsWnp9agnYIIxOPFmUR9nuVpLh8vQkXx78KpizMfTirns3nw6Y+Dlmq/4AL5HiTv9lPDo4VdPbYhC9uCh116uA4oAz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rqb9n62THsoTh57sp67Z4e89gNDW+YOPVkNoWKzPrNmFsiF3qG85e5CFT26biT9P5cw52dDWjVwztdSfJhyHselMZwnA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2971bd4-d70c-45bd-1f37-08d9083a63d1 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:12.7739 (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 05/34] avcodec/dnxhdenc: 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: pxpSB5O9/1QU |
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/dnxhdenc.c b/libavcodec/dnxhdenc.c index 2461c51727..a896891c69 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -1268,7 +1268,7 @@ static int dnxhd_encode_picture(AVCodecContext *avctx, AVPacket *pkt, int offset, i, ret; uint8_t *buf; - if ((ret = ff_alloc_packet2(avctx, pkt, ctx->frame_size, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, pkt, ctx->frame_size, ctx->frame_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/dnxhdenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)