Message ID | HE1PR0301MB215415889D81710D0DC29BEC8F439@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 e20csp3458964iob; Sun, 25 Apr 2021 15:37:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmA99WmgVb1NJSuNNAogI9RY2TnLT9K8za+GqRWloAb+YO43fQffo6GPzwSxnCUD43PRA6 X-Received: by 2002:a17:907:770d:: with SMTP id kw13mr15179584ejc.339.1619390268258; Sun, 25 Apr 2021 15:37:48 -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 o21si1929605eje.665.2021.04.25.15.37.47; Sun, 25 Apr 2021 15:37:48 -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=A3E+m5F1; 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 F0A5E689806; Mon, 26 Apr 2021 01:35:38 +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-oln040092066091.outbound.protection.outlook.com [40.92.66.91]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2C1026899EF for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:36 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NwWM685ajL6SXen2iCZ06Ug78XBroJeoPJdU5z+VxqBhWwiLnZzMWd8GD9EPEHpgBTQs2y+v7R/7ewy90EfjpfZvWLUP4T2C/vOBxI0p9MwTfB2dBPBXIN9ajZpkKfVz5gnXVhPE/qf6H11RBv1mz2OqCRtrZC6Q/WLBP3/Uw3xJLVlycBWRF9rmcKJsrXokj55vpFAzul2w9ICi0ApASU2MiwJVzscKqBvMwApSJRI0Eun7Z6AwxGax+2pVgY9AZi2SKjdNt6NMaUn7GkuR6JRB57foaPCT+3WCJ+T/n0WcSgPZpVTCbZWT9MUwSaXFpQ0y/cyhI98kGojmHmjDow== 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=WMlXZHvbOqBPYR5gs488cUFmqRFRXGfuoLE+/gIhU40=; b=GIxWlaGgD0wAtjZ3LDP76uQzIm5VkQQp7OC5eCjYEj/nmGay8qRKFTYk5qpaQlBXjx9dtqlGN0McmJLRzf47AkEvJZjBplejRyWa/SgXlPj8l9LpPwIrCV6IpBF7Wl44Pv2VS4WHMmDtAhKIaKXiLQ6JAXkpA/fMX61oHiF43hChNlpmKjtZTC9l4lQa/t4SxImWCkrBJCaTGZyoajzZcj+cSgLveTjJGqQsDSMTeyhSeOYwxY+thLrxgE22z/0Qx0PC37rzg2yVBEHaeDF0A+hitDJZvfl+Dhx/9z6TMRDZNp2FG/JKkZu242Kier1SfcM5RrX0O8J2KdWlcRSPVA== 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=WMlXZHvbOqBPYR5gs488cUFmqRFRXGfuoLE+/gIhU40=; b=A3E+m5F1Oxj/5ZPV6k/oAJ2G/o+HMMxqPRE8+JFwUEgPQyJgHBbet+CMHUGDvv2ATYf7ALCLPyj9widkdDn0S74p7ui1JOTuVBmQ1dG8NDIA2kw+ZbflNQ2pxc3+kCTc6NMi2UyGnUg2W81oBK62raU45Z4zafRe4QArPe/PdPmtRANi6FhoOxj1eDl60m27xyisSWT4BSl2tWKi+Ot6xEZyJcCXqz9vYo1b9NcVDnp66WfZM2TNmAlyOsKU5cFrwOtgWhi8FMjZCx4xWMzoSKkStC66df5LLvs4AzbULQOpspP0GUVtXwNXYDJmmaGjLp5AfmvzECMw5ZdQOnR2Tw== Received: from HE1EUR01FT030.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::4b) by HE1EUR01HT099.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::346) 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:36 +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:36 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:99244628743CDF53C13158A7B01C6E032B09DB49006D5D01294D485E94268795; UpperCasedChecksum:A0B694B4F8B69BC6D32A411C6C9DC771E804F9A24501E4F6CCE6A0DE7BA04B6E; 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:36 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:32 +0200 Message-ID: <HE1PR0301MB215415889D81710D0DC29BEC8F439@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: [PNtVRc921pOPYDFwwl09p7LX6zJrMiet] 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-17-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:35 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: d3708a4e-b20a-445d-8edc-08d9083a71b0 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKBTepCewFwVSkfoADfkQpyvQJmww1KlXcr+VW7VMqeUGzMBGC1yMQ68trWnMB8QWmSPDdy7L0q/FSP0wINV8iVwCkiVJ2P/0C2oRa3+bsKoPhWrsvN7deuGElyBy1tyOUYjb+I2CZikxO/4c0X34eaJTA5GWB0GJDAwHokbn+WqQ82U+20xJHHtIN85+zo3wexTNUl20Uk3wrvwduBqvKPopVEyRHbMjxz3x/3UQBtCniweVxnBdtR5gI461h0MkWoCqnFKZvStqferVulzwb/2oX/rh1jNKcRFSGlcGue/Nzu5g9Cm0QQjFa5bTjp4Mj5d+NYqe13+PuX3gW0CcilDZq6r46iySmxDHPOi2M5R5lfIEpPS0pcgjDPlxoLiVs5pxmdrGhFzAKPPIaPVc3RkwgNoxyEcz84HUxvW6yLF5Z2reTxdfcm2tACQVduFdUmMZV9aY+45Ut9kWZFX0WR+4w0ET3TAGUyofAZN/fxvr1Nl54hJTvAKMBTTUl1nTsGR+PILHiS/78iDttGUAS50x3EePCo6AWWV8usiK2dLTVfSyyMC5QuJDChctIyEWM+GvaEUv35Lo0ZyZAofYWsjBzkSHgAbkMd3YOh04VHHFoiB2BiUGuOXKwZ79hEO8te6oQhkLJIS6p010VlSdMMr41+Rgs6UtvfFEpDHpo5JZ0fq0TYnGm7+tLPMrDLjK9voSd9VEr3rQ== X-MS-TrafficTypeDiagnostic: HE1EUR01HT099: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5E8XU+8wNfXQOie/R3c5BGPCM3FL7Nv0xsxAGKgD7OrLR+aGDN3YPAs+HrfF6G1WsILHKubFoqiacRyXs/vRIPw2zJwCIBHEG6vrCgO2xHnHeezzBaUQuaRHriCWQlMviHWlvAxFWdlMK9eypQtBlHQsTRwp8p1y77GL+Axiw45ldo8AHU/C2CiKSOeGz3OoC3wuVTWf0AHq0WBAl574PT34K6fzhGEHMwxt/nuMUivgQNw/TK+nifPwA/Le5GTF8NuYextqSszOd56kQv0Mt/TFjM+o+ldgxxQIztkR0n+afOf25ZBF+vWoVLyICfSirifsUtlq3xUO+5PukEb8YXAig6O6JUW1QtM9U5ir+9OynkXZRxoe/FMsNeeIMLB+tcl3MX2qR0WIb3nuT2jN9Q== X-MS-Exchange-AntiSpam-MessageData: MraKChvtztOnlqatchS5K7yx2qLbH7wj9VtxbcbDYopKmngnUIgXZXxGp4d8Ml25UnmIYHB5/YgnGElC7V8LpylsIviPomeUpWtGc4iOueK84wH5zKuIma9daZAkvOW+Y1dUNEuJvGSIkw4jELGd1g== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d3708a4e-b20a-445d-8edc-08d9083a71b0 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:36.0286 (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: HE1EUR01HT099 Subject: [FFmpeg-devel] [PATCH 18/34] avcodec/v408enc: 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: QYcF3RsLZ7BX |
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/v408enc.c b/libavcodec/v408enc.c index d2d84d9c40..e29186e275 100644 --- a/libavcodec/v408enc.c +++ b/libavcodec/v408enc.c @@ -39,7 +39,8 @@ static int v408_encode_frame(AVCodecContext *avctx, AVPacket *pkt, uint8_t *y, *u, *v, *a; int i, j, ret; - if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 4, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 4, + avctx->width * avctx->height * 4)) < 0) return ret; dst = 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/v408enc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)