Message ID | HE1PR0301MB21542CEF7C0FC9095E9C60638F439@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 e20csp3459964iob; Sun, 25 Apr 2021 15:40:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6cIi6mHy8Ixf8D6+3I/rltn261zIQewTOEgpyhFe0haXNJamFuNLC9qJpKCx5elFMQfy5 X-Received: by 2002:a17:906:415b:: with SMTP id l27mr15461606ejk.19.1619390404813; Sun, 25 Apr 2021 15:40:04 -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 i13si11976480ejy.221.2021.04.25.15.40.04; Sun, 25 Apr 2021 15:40:04 -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=KEuRwm5f; 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 1D87468A094; Mon, 26 Apr 2021 01:36:29 +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-oln040092065067.outbound.protection.outlook.com [40.92.65.67]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1DEDB689EB2 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:36:25 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RH5i64tLAcXvltpjeKgA4r8C55tHXo5TLF2+tLth2DJSZdswK0iwDg0oNMrI2uYzlFWGlWsSDQesKy6H1b9l9gmSDuLZHEncv5YOc8tFHMGTvQvUGqPvaqDgx8XrZLIQf/mQ2sm3qtbB+JCDqaugAPFHRHE4oFE6rdsXecZrJ9Ed+U+YzwTtiAgnM92JlsyTXX1P9OPN4ZX2vvwReJ8BQSoS+KAWzTOQXXZCLyhgMtRE3/nBUA57LTeK3a3iyXOUecX1xpN+7VvMI97Fl2ioPt54AV9URurOxOcu5Iqb9QsOcbH1G0khJrLEC51nWrSNs2z03asTIcbfDeUZrw2gjg== 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=npMnEYSXP18gtyvdDTx7QGPZ14Cz6qjdLFiQMRQdUEY=; b=PvVxlI4Ukx3apXInITUxC2+jO9yWDSq0vMk9ecCpTNlX4wofnl4W9a3TnQ334jrVN9wwSoinmdBW/mM4M3CC73b5x36AfrpshdfAkidJFctKTJxrOCODVF9zJriRcXbykOdOO7DsTk8xndIZnJVBdHX2yPxbj684u6f4H4Ww8HVXmdPoLIxaoS9yVD/ZqEMmD7i62+d+KbLXHuHgT+jxa1k9qEjubTLOl6trp8y8bcUwjUIY/hHpXwkSVObR/bXAsAxoAhStv9vjJsRJSnWbmfMJGs7DPj1/1dRC4A8SF0z+qWJU5vtK0R1+U5WUvN6vBlZIoz6UnhK4hHvC2dcy0Q== 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=npMnEYSXP18gtyvdDTx7QGPZ14Cz6qjdLFiQMRQdUEY=; b=KEuRwm5frs7+C32xZWgmBzp1FbwXa4XyO2rT2nQ6HJbbgs6hQym+luQFwbNYv3gFg3wuzOXEdIA/Og+U9pAz42ZDd7MEHaLgtnkQxj1IspJXAm35BKttxs+dTaMgTpEWHa7cwpsLPQ/YxQVk4s1yKdiH2DyoRMslVhV/HWuV2Q1Bf7XI5px41HBcsj3towsmgVSM6pT07U9f8fysVnDSIv1O8KWPnsY2wGIVoJjy3MLm5NojGu+SQ4KjfV86YWCvqn1noRfaiY7Hbe7v/AkZqWyPNCY+TFztFpDdGhXJC2xLLV6tUrqPvP9bLRK8bDzkOvGkqkBZ+QUMWmmm1LK4hQ== Received: from HE1EUR01FT054.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::4b) by HE1EUR01HT238.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::405) 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:36:24 +0000 Received: from HE1PR0301MB2154.eurprd03.prod.outlook.com (2a01:111:e400:7e18::4b) by HE1EUR01FT054.mail.protection.outlook.com (2a01:111:e400:7e18::317) 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:36:24 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:C47258118A01D4334CCF63AF0BBE516F4C1DA7500401F62FF0086A30AF58945E; UpperCasedChecksum:4AEC38F906FAAC9F86693C46F96F0F82108BA0E6186F4AE1FBDADB2839498141; SizeAsReceived:7749; Count:50 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:36:24 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:48 +0200 Message-ID: <HE1PR0301MB21542CEF7C0FC9095E9C60638F439@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: [uZe3UaNcKeY66khoi9UnC7Fl2WscIOjv] 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-33-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:36:23 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 50 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: a8fe2973-e922-4ef7-f158-08d9083a8e3d X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKBTepCewFwVSkfoADfkQpyLSgPZ3++pmPQkBV3P2RHOykryaFZqdWEpmVG3qqBOuc4fWNvGu0AbRbNzbBS2rN2A3dlfP/DO+WIYPlt5st+q4SaqvSZjV1gUjpJqdDPViZpe8rMtLuI2YPE4dW0IFlaj7OxKeS9OTv93ypAnfxQXXTFRJvMg0E5ZetIKmgcuRHgWt+XPeLokoC+wXi3EH5lv5NY/cKq8GslRc7gyiYErI5MTgp+oIcvbqJnbQM77sjy9quseCPJmG+aE1jVqp4HG/s5kCDYLxLwwLwyEthrYYqdEE99iv+hWJ258TqSr8wfUJ1LFuVyhw6FyHfSidjRe9FWtFmTPI3T8fM/wRftiJ01ptErV/t7e7f9C/oFeUOrQCkmRw/dth6P1JJQXhC27lOf/v2IY8ynSYDGLKbXqDfHTj3FhhxlLrfMQlTmiwacp3wZf/JDNP0xhsKL2y46GBX/E4Iwb19Tod2yZ7tjTYHutbfMCo6AZQoqsdZeewm/qRbLHHRZ92LAcwOWC/vtWrY44hxg4ivcd4xTqb2yEOkB9gGWIrhtcSkhKZUgUWfXux3cYjwAX4k6MxwIcS60txxsv8J4jcQDs4t3YJO7Xtz1PBIGVQijmMTDAo4AxqKymYC2puzK50cF3kdc7FgM7eTyLNdKfmrUx7ghwJY+Rlzy4DREkvUmo8WJ75hXbZOhsd8pg2DZdg== X-MS-TrafficTypeDiagnostic: HE1EUR01HT238: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GdEO1Czz47o9n8a2V88Cota6e2znzRoIyiFl1ZjkDyjiJGuZNp2BTCX+ycex/7/UcfX38SF3NJEzYr1ameqjoUkWd/wcl3Zi0S4HsAHBw51YsUB8V+rq70WL8nQ655yMxQ33+QUc7C0NsK7BOq2SHDy0cmTUMyUq9hrW7uLrSkiC7EsYEBsSwwGE9s7/SPX/5EA4PVKUae54638wNkBZOrT3CoPCkSaU9WNN4VnOYmXJwO2wOvMrryWfBo/LWcU65/tmXntI0HvZsdN7LonOGGJwOZHAJ0OfZrZkDyOnNoeV/+zXgjYflTSkcGwW79sl478TyFoXByk1GvGfujN46Cz95UEEqLecv4fXVT3MnHBLx6U+0lClvfNfcZVP+/J+mhZLXcjScSbfdCuZC/v7/Q== X-MS-Exchange-AntiSpam-MessageData: Ei/KjkZEX94Zun27voqdUnEfo5q58go7bu4O+z5ILDvGm/SjBmQZJDKUQRfSbMUW9p2SwPLfwXt0rPkURaiJjdiQSa6fc1exQwDo7bneRAtXCgFJkcmhFUCmP9tosB4a6aB0g/RBUJtT5T+DWQWENw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8fe2973-e922-4ef7-f158-08d9083a8e3d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:36:23.9334 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: HE1EUR01FT054.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: HE1EUR01HT238 Subject: [FFmpeg-devel] [PATCH 34/34] avcodec/libaomenc: 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: 8EiXPJVFzsin |
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/libaomenc.c b/libavcodec/libaomenc.c index fcf75e835d..b4198ad903 100644 --- a/libavcodec/libaomenc.c +++ b/libavcodec/libaomenc.c @@ -970,7 +970,7 @@ static int storeframe(AVCodecContext *avctx, struct FrameListData *cx_frame, { AOMContext *ctx = avctx->priv_data; int av_unused pict_type; - int ret = ff_alloc_packet2(avctx, pkt, cx_frame->sz, 0); + int ret = ff_alloc_packet2(avctx, pkt, cx_frame->sz, cx_frame->sz); if (ret < 0) { av_log(avctx, AV_LOG_ERROR, "Error getting output packet of size %"SIZE_SPECIFIER".\n", cx_frame->sz);
Here the packet size is known before allocating the packet because the encoder provides said information (and works with internal buffers itself), so one can pass this information to ff_alloc_packet2() to avoid the implicit use of another intermediate buffer for the packet data. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/libaomenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)