Message ID | HE1PR0301MB215470F01D509C202B1A017C8F439@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 e20csp3458447iob; Sun, 25 Apr 2021 15:36:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4HVRERn2m4YAFn2QcpI4GLj+AXzPFpY2Q87d9yB1o+cTa5Kkn1F1FCaaLab9xxROSaE7j X-Received: by 2002:a50:f28e:: with SMTP id f14mr17906285edm.371.1619390206571; Sun, 25 Apr 2021 15:36:46 -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 w1si11295051edv.136.2021.04.25.15.36.46; Sun, 25 Apr 2021 15:36:46 -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=NjpdLBLU; 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 15751689900; Mon, 26 Apr 2021 01:35:31 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-oln040092064058.outbound.protection.outlook.com [40.92.64.58]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 127E5689730 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:21 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I+Xhtbtl2mu3F5d9mrh5V6XBj2r7rlUQWmKWOfcWvVRPfN5HHgaZaa27N6XDZ3OdtM3Q9sSvNcYuRWphpRk2OxnCaC4fWdHXvStENJPyZK94kNsaadkkfJQapcdvBshdVHjT8N/cil2/32dFHSSmHCynjRVpnCWGVPGBpHlqqmZdBcAAWeZM34e0c9ujwmVeOByrjl30rj39Pb86a/kRsz+ztcXYkNhHh03h5q2deG3r/nKaV1iuRwPG8Zmw3nNwVEiwb04ClHjv3q6w+L20uVxFDytwU+txHAMn0YvhWy5eQy8NTx6zfgkTLICZ0/yT6a0ZpE6HOtje9XgrNNN8vA== 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=kNyE6ryg5FFHJot9hoJCW5G1FZUc6PpUInK23OWUgF8=; b=BRHJ6vG6hsUz7O13bdmgNWIbJJrz+wIvBlMipiyw1ww1yFEB9ZM1S/GUtNRU5W1nTewL80TeJd9NNgTGgXRjKZ+pRqZMshIa6Jhw/6hxn0mxXrX+h0vTOvD88n3I8/dfa85naboezWRou5HMBt02KHjRrIHPODwTwPq1/vtHQV2G1kQ3NUgkiVMnvfP5kjOLT/CTWPmUiRXNIeXSBfbdTybjHZw8GCHBHvfJB/ab4entNWJ73P952aasVRm8KIIZ3yUMtG3S5A675NwoY175aqjGCznuSTdTsvWH/lyFKu+Lj2Ihj1P6rn/tdHz05ov8rhuq10ttHYmt/rdIvmRNvw== 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=kNyE6ryg5FFHJot9hoJCW5G1FZUc6PpUInK23OWUgF8=; b=NjpdLBLU0dj34PhLQdxquS/keXFDk5Ei9KBDQjQOt3vVylwAfhtErbLf0a4SM0CfdblOAYKjKp/ll8uO4QTJoQ1qYmo9LGUThpEPk9a7Lg5tfv/u8GrMiztJimxJ650NfMEt7AIcPPF1/zWaz2By84Y8ElMifwG5x+j9CUoV31s2kHBPqgK8dztBDsX+W5Q+W7cKo1BThuTkl5dQvkwk6Wv6oLjffZv00l7Vwx2VC7m4+kwEEyKmFwFVxHZmrWzTNZwwU0m753O+4FFRmj+xwZ/D/PIJn6QFm3Wdx1QNqDR5hbfYfAQDT32b1AJpXuiTSuaK/tEeBvTI46ACGsVuqg== Received: from HE1EUR01FT030.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::4f) by HE1EUR01HT126.eop-EUR01.prod.protection.outlook.com (2a01:111:e400:7e18::297) 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:19 +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:19 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:36E2E5EF0E4E64F8ED8533A8A46642017E7012E91EFB6E375EEE4D1EEF2AA808; UpperCasedChecksum:A6BEBB2E6F46AA62B5A750C22FEB333B757F608D2FD6B2831DB58DE71ABB6C89; 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:19 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:23 +0200 Message-ID: <HE1PR0301MB215470F01D509C202B1A017C8F439@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: [0XN4pgowcxW99SVVs5XfdL+xqSBjTt60] 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-8-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:19 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 3e94f932-b422-4842-5ed7-08d9083a6818 X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNWJWQ5lR/nEnbarXZJSK/i4ioRHOXMcivXi6OtyeFFCbxDLqla2Hiy+hzh8BvdtWVn7bkfy7w6ES+NtclXrmZOVfLse49kBBsjbLTyHwQ4Zl6Wb/CyCWqXu+spNfSGRdk0AaSp7aDF20KeQeEXGs30fsh98DjuedmI+o+CisWeTQrGk338IyhAcsO+Z6yozKX04b9+EGC53dh4zifgQS7Zh2gU71b65Z6ff1SLRGzDbWRbZQAktM3hn+BUeMOwame0ZN/EH2yGsEm4NAN+YSp5k/gVJoAFGtt0GtoY40ErYZR67Odln2DpHj3puzmy3ccAxWbRLAMO5/U8VPRquOgw6pML4phrp+gDgSgFlHMiawiaaC82IT95GudJ8TOCFnhz4rzGoH6PpE3ooLjL1/KRE4U7N3t2Zzovq8JaDcI+KUDxefYMze4rFht4zh955sk0ApXLe6aJgxJ+BMij6nVVN2/vbayQvpT2L5U+x42wSC+IUhKVjITy/8/ZgJz6P0l4tZ0xE2goUBBtQ4SUkb5K+cES3OKJeltXwALJGMkcJ1WUIrJpkk8tS8dMhfwhVrI9bnXipYzlgagMqsmys1lwqvlGoDUUFuKFs8x2WgNdofDjleJbX9VaqarU/xGQHv7ycSSNX/PjOh0z9DR805YQFtSZe1v0LS33/pfFmQb0azAmbBehHnkS855ivZyx3SPf1DGDXkEZ+mIVpWYufJezHKlOYACnD3jw= X-MS-TrafficTypeDiagnostic: HE1EUR01HT126: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aORA1DEEN3A4DE2u/DSTyUvAv7zXyBTR6wogHlXmWmKBvdKUJpkDZGzTI0d+Xor+noB7+0KrxNupJtK0gZlNYRZhUiMhOhSYRWDtEhhhmxy6nN0siTJ+ot/gpk/27gRCoTCF+tiWM3LLRG1xf3s+NQvFwh1Hpjh9SV+m3+ag9ybP3gf39l4XPnvMNgAENr3McKuBT3NqUh070x2DVZkBZHnkwDhahwUi7LU/2685FbaUzwdg+4eLXFe0Q3My0nRwi11b8/GjWbmlyFUImDb8uVQXiLlCCmIlHNP9FdH76fB//K/SRzFZP3pyrV/WtQqTbGsRh9uxvEnC8UqY2XS8R/LN2v/LHAvV/6Qq0/s6NuvLTaApV5NzBfRT2CZV8MDmvyRZfHz+oL0Uqi73cuxytg== X-MS-Exchange-AntiSpam-MessageData: hahte680d+Zjp8F4oFM42yznrLVOf37uu40dovJsKVzgq0eJvWtIR6jtGKQhBAtKyJI+z/1hg77ZCqTqNgTBhfTesHnl2bWfOykNhcOlMgeu0tA33hjKLGoBYUi8XXifSCooWk9k9qbZKafjuVl9Og== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3e94f932-b422-4842-5ed7-08d9083a6818 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:19.9247 (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: HE1EUR01HT126 Subject: [FFmpeg-devel] [PATCH 09/34] avcodec/g722enc: 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: P+J9vlgsBpk8 |
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/g722enc.c b/libavcodec/g722enc.c index 9e2ebf67c5..7c7caadd48 100644 --- a/libavcodec/g722enc.c +++ b/libavcodec/g722enc.c @@ -346,7 +346,7 @@ static int g722_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, int nb_samples, out_size, ret; out_size = (frame->nb_samples + 1) / 2; - if ((ret = ff_alloc_packet2(avctx, avpkt, out_size, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, avpkt, out_size, out_size)) < 0) return ret; nb_samples = frame->nb_samples - (frame->nb_samples & 1);
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/g722enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)