Message ID | HE1PR0301MB215413CC20F5D446892E4E3C8F439@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 e20csp3458855iob; Sun, 25 Apr 2021 15:37:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynpZjrUbJrOkPMnSGt/IUeC5nXEHpl6ZbnxzWMDLcO8A33i7ai2nKCTK9rxvEyazRDgRFK X-Received: by 2002:a17:907:2bd7:: with SMTP id gv23mr4193839ejc.321.1619390258077; Sun, 25 Apr 2021 15:37:38 -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 p15si11991132ejj.88.2021.04.25.15.37.37; Sun, 25 Apr 2021 15:37:38 -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=lltgHJPM; 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 2CC82689A0F; Mon, 26 Apr 2021 01:35:37 +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-oln040092066062.outbound.protection.outlook.com [40.92.66.62]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D7D10689985 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:35 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=emVCBXdyKmb6t+bU2HvG+TqwMuoaDvtljZiJuEsGAHhMspxd+TUktJ51s08vTUdZ8FhsB4Jhtyb/7jB9IBKyQO3NNj2gxNubtxaNJAA4QybAFBzQaITCasuRCUdqlpaHYGc46wddMWimEl/ooyl2x6/1CE281MY6qW1MJtEf1ch+HLQxV8LNnz6DTK1Up0LvjEjNdXQrfFaRPI0ftDt87Olmqd/lKFQkbNKSDdrT4UGVeEnGdU3QMvU8HXlaAC2GP/5Yph63L/OQvzP1JexaUGqIT0W8SkEjgmXS0mU9pvQeLiruEohibgkwlrQ2+jsajEVlTbLLM/Wo8fQHUPNzLw== 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=lQgJhEL4mAfVvYm+NF76iNV3mWPt+tnQE6mCnYsRkDw=; b=bIGjKIIZhu/V4u+Sga6++1hDAtGQOcLosYjOkk02W5ZA260JQQev8VzAG2cgHTy8vHjq4woa0RJkUriW4ikOChfhZBH72lhh1BgGIIE0AzBAt7Ty+VlASTvE+GLW1GGmJdcXDV9M9wKW5zrLAW1XOEF+C1hSZqec9+rDoq01zqZPjNVV/Q1+dU9hF4gUVtxUKQWNduqok5SsX+O4k4ohLpfu/AWHNzzyGTTfBp1Sqx1M2asEwVZSN+OgGNEoF2lS8OgIXDO98BAT7YyCMCAa2/cGyOOR/GmN+fjXTcoUYLiVpXiwCicZ5xmOZOojwjjk28KklSqeUJ9Ucdw9yronqA== 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=lQgJhEL4mAfVvYm+NF76iNV3mWPt+tnQE6mCnYsRkDw=; b=lltgHJPMVbm9EK9CCLC+2tTLM8yT/NDirnx3l+Fs0YYoU6R74FqbpzgKkFH4sSlTC+Xm9juKJBd0AhWHF6YqTPNvBkchICOLf4JtdW+sJ7xk2RO+GWnd2N1/znkPKeC7GG5l5hkBEkqs1g+/ehRO/GlDhGDlD64hqYQF0Ohft3OS0uh9AvJBfgQLnIJ80mvk7beCYgTS4LaQgR0Ypzg+/KANytqidX1HHSiUAZRd1r9DwgHt1MCSz0kVcXcohne6wcDSi2yZKPiL+6Bran7J7qeT7EBaiMgs8adQNU4JI68hMaNVX3u3H/X9U8uG7prq+EwZ7dnOHw+eYgMwaDzCZg== Received: from HE1EUR01FT030.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::45) by HE1EUR01HT107.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::246) 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:34 +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:34 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:2E3EC89AA8F2820BB2012238FFFE775B0F9704CB710D085D25737583510DDF9B; UpperCasedChecksum:28D880853BBC4326570212A1E649F91F500CEBCDDABE215EA61023816274090D; SizeAsReceived:7574; 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:34 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:31 +0200 Message-ID: <HE1PR0301MB215413CC20F5D446892E4E3C8F439@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: [CSnPZcX09ipAOWBGmMHCepY5zJFlDHs3] 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-16-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:34 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: c072bc32-8e12-466f-96d4-08d9083a70d8 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKBTepCewFwVSkfoADfkQpyvQJmww1KlXcr+VW7VMqeUGzMBGC1yMQ68trWnMB8QWmSPDdy7L0q/FSP0wINV8iVwCkiVJ2P/0ATvHMyqtpp5vt6mkpYA/1gczypVuWN3yVX/E1pHmkRmfj7gDwskZJRtBPnjfH7bUZZk7upf68GqLNpz2wPjbl5aNdFfT4z0JINB5YpFASJ/ohgFbPlRPILFbrU2feLLDBEgi/4qnVxthZi1nTwkSr62ydLOxRdWSpqAZyZoXVx0I75pyZcOF899vfblPpfZSAVIzZo26WX3fiixOJPVNAoRUgo0uWjqvopXfcRoLsveiDTY1CQe+BAg7qdDy9mLAxDUHjx73fkd6f+MXAtCmmzSk8OGG9anSsiNWUcL6+9GkmINwj4PPx4AUihC6MD07BA2xVtgkI4zFXIaS1eoxXwIu6yh6mcnCXedGsGsFDfcP7i32d42u0UI8Xk5c6rY6QXmPr3CuhDlKC9NL9ZMffYvwowjh1EBK6Y7B9hX2zRMHpoBCMZv+TH1wDTgaAJO7EOjrj3TIhIfo6CjPLYjwH4AKaYVCuDT006jQOZalH+/LIYNk62s0DmFSl9bwKd7s5znwQrWVk3nTKt/m5pyS4yG2Do+bSVgNAAWplepviCpacjXaNb2ZTfIIN+GuSaSKOtCWMYKaaLLwWLe+vKLguL3pvx73wAOr+X350XNmOzTA== X-MS-TrafficTypeDiagnostic: HE1EUR01HT107: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eStklkLZMjYKSwEdPkcaF+9mnBzSu2qmWfK3jwurOub2dp95JXVTccvImBfMAvTvlDzp14zyK8cXuFmNn65la48qDreNMTJLUbWlPuC6pJP0m0IzU3M94MabveYpvZTF1P9+ThYn64mOZ7b9jqWqLDDWCPW4odcQ9SzQeWJpXw10XQgcdKAH0Rz+ZpbQmpPHyWhbcYwncbjC1JCzbaWwPbPwyzgb1H3OuK8Wk/y+VQN5Gii6i6mAE2QY+v45bejGhNGbMgfLoHEUorml29muBqJNE9zaYb7wxWfwQVa5xzVxwgt5MPHfP7W/jBzpNR2CMDzkAacYCI+GKc+fCxNFyVWRFWKu5SNdL9oOXjB+K8eLI7IqLxk1s0ydoN6oMq47SK47x/SJER8ynL3ddypVRA== X-MS-Exchange-AntiSpam-MessageData: ofdzCSq6j2uWKLppfQclk2We7UVm+aKu58CCEHA6LSG5AC8kZ7m+v7D245i2UBoU+y6fYSOlH9JC0+5mgmnCKg0C8gkQ1tzv1ektNyB7WjOZM8PrlDl7BLfkyEco3oxyAwZK3WTLaY8fBEdd81a45Q== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c072bc32-8e12-466f-96d4-08d9083a70d8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:34.6492 (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: HE1EUR01HT107 Subject: [FFmpeg-devel] [PATCH 17/34] avcodec/v308enc: 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: y8JNETCom4HB |
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/v308enc.c b/libavcodec/v308enc.c index 0891251dea..bbaa454880 100644 --- a/libavcodec/v308enc.c +++ b/libavcodec/v308enc.c @@ -44,7 +44,8 @@ static int v308_encode_frame(AVCodecContext *avctx, AVPacket *pkt, uint8_t *y, *u, *v; int i, j, ret; - if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 3, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, pkt, avctx->width * avctx->height * 3, + avctx->width * avctx->height * 3)) < 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/v308enc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)