Message ID | HE1PR0301MB2154B18D360DAD33926934648F439@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 e20csp3458494iob; Sun, 25 Apr 2021 15:36:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgfJvZuCbAgumV0o1PP/xoAsOMKvdTPl1Ad5qRA0PnGiKNq14aNoDZ13+UWN6otB7Q8DGb X-Received: by 2002:a17:906:7f01:: with SMTP id d1mr15876199ejr.136.1619390214983; Sun, 25 Apr 2021 15:36:54 -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 t15si1568699ejd.753.2021.04.25.15.36.54; Sun, 25 Apr 2021 15:36:54 -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=BOBktNdn; 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 239BC689739; Mon, 26 Apr 2021 01:35:32 +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 4CE95688043 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:26 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aYEBZVMRgykursVc/XSfHrdCCX8VQNBj0BdxWO4bq+XaOeCAluYCyG8kE6Ntw5TWjAIYk38dcdCDIYc+JWBlo4eDl3YfIJjsmOHrpCIAZMeMeSR+J/gvDgVUvoCNWQV96RdvXHXku/yt5/ZymkteuAuOUchEkW9wO2eauWAblqTRmRwIBqyOW6Fqy6lo6AZAf41ANf669//4tTYUTABO6WVQ5hJN8tczkZSPhdebff9CqU01m8g2Sc7i2Dl4Uazy+86QeT64fP9eKexkmcIhzPkvady6ohi+YC0VYLT7LH4eQUJ8OV31batcJGqGWjbQ2PpJuOJnCMtvUjKh9qXUhg== 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=hq/gEIP9RPcKCqmJt681dQ5ggLFMWSTgR07tPqtXMZg=; b=j+hJWmIBqIW73TdvsZOQu0aX8oDt7VftIqQepP5z4sXL8WDUbk04SVXhSMD1bHXGtvrN3DuWPt7YTB1X31hHMXgaG72XR6PKmVDWItHMB8IsqRaKnYANl0O3DQMEhbxWwZI0IiDmKN/ZbTXd/VyEaGMSk4/V+QKLfaX24TTPJExZz5mGDRTDea5wJ5C4ykxT9R2rso51iT87lOqksCMFz+Qrox8YXFOsL9CkMmwJqrDVNrY5zWGBtEqlfVZvALkyc4DaFQvGt3pkBXw2IDeaDnh/wnYF5PmaIBVA20vGbY3VKz8Zyqgk9wNq6CwNe706He9SBuIg49cnRwB2GFvd7Q== 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=hq/gEIP9RPcKCqmJt681dQ5ggLFMWSTgR07tPqtXMZg=; b=BOBktNdnd6DkPCez3STM0mjVsi+iw0pD7gI/18EzpGhGCp08TYSvtelx09xnmNDMqevGbcAQoggwPdxoBmNhj6bZ+RtyvpLxrIzmZq5HLZN0XLTeIuPLT3oXd3OFVdUyuZ0+Tikz4ktcvUEdXX7X1jwin82v+a7YEIx/Ccti1zkvI1Eu47hDuTvGzt9DBUWc7RuCpGgRfzrWW3/8T/WPHemcRgHE8H86UbocwjcHh2u7ojeJjV6Mbl9eSp/L35WiK9qaYg9BUDQQ9fIVOaGDttbpukybIHxwyn4o5OFeP5p2BaUGxi4uD9pS0kGswSwo/8c29mLpXCemobQlb5q6zw== 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:24 +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:24 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:379480A16264992D867EE34B3DF73A35E337B439AAC923935B60B703051B9EC7; UpperCasedChecksum:B7741F1E383084E136C30FCB183F94FB62158709A902B62B90BF4CDB054B01CC; SizeAsReceived:7576; 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:24 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:26 +0200 Message-ID: <HE1PR0301MB2154B18D360DAD33926934648F439@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: [aIO1aYkzF5d/ZFRzzQC45p2hI8QOMKmn] 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-11-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:23 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 8d82329d-e457-4889-0197-08d9083a6a9c X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNWJWQ5lR/nEnbarXZJSK/i4x6NQ+MZPNEsihFxKUkFnBaIm9EZgtFFRrpLUMluUDQY1oI6aKXEpKblZOMkqoeIrZcvECNThm/BEWUvEZME8NZLueZDRRV0WcfcgFdgEl+7BhM9Xnqm4Bfrhx57KsznazgPoi8kCvlTaZU55Nyef0XjZfd/SvFl+ytav5QUrW7PylfieUg808+AlHVt3pZNzTlA+vB4vH9tGRfNYUTjTGdWOCGFOrfAXtplOhiQYsumxspNqVKmXVXf9LvZvKZ14aRDCOcIsu62GOsrYygkzpCsnAuc//9Cvp/JplTN2Q4YMwhrg3dJ2ZQBukYT1NJYmzId78Az5c8q8b6hHlS/CoRscvwVS4aqBt7OENAwc3Yh3Mk0l9+SauxL03WX6CW/Le9YfNNBbL4mSNyza42XNZLusCm2fiQSfPL6CY0LHcZoSezo7OWGJWNvg+aH4JNf5jRSNmvucjgvoO0dKXowYGakneZ+M8QAaTQmr9Jx+QA9AFQIaCLWwTA0ILDcS2EFnbQ4ISAbxgxdkE1Ptf3RZgUuX9O5qLsA6lnoU0VT4XW5A9efQVm2lJ7faD27o6ZyaYX7llfeqPYAsck33zg8FPC0gdzTGO94IliRD5FPmhjXLfV6QWU7tPfNWxf8xmm8drX1U1YtbAAsi2gJk8FI/f7KMNxEIf70fPWFPZNxBQNpkadlAdoyXh3XXIEYtqOsPaao2yn7kuXY= X-MS-TrafficTypeDiagnostic: HE1EUR01HT126: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J45qQm1zMMSF3E83e3KDKy7KTjYWwn1cUGZIM27mIxKmkn9O7mI3T13Tfm+1w1V948oeDBbjsPQtY9WlIB2qtseUYiu3jvzCddBDVPkKR2kSo2ZM0jZ7rKi+ee8KNODTq+iHjiuiGVF2qGKoxWZzNL9Jsf8idb9fd+rS0ZyZcw3AM3ZPmehXUW6VqnHkUI8bUZFfgnJwdJqB4lhJrd+dSxpaOarCnu1c8mafXDtmlnfj618O11PyMC9Q4F7UmSH6BHEaNvupkJoljRzAK44H0Gpv1MJwYHGS6efiaXxNsgzRy54plZ7tRVn8200rmfg8xMZWaiYfRPto51P98lsPmtzgZebgtzLhWjMugM0EkzM3cz73jqA3nsIL9DThQcJzhV7+pAql+jljsvLiEvzMEw== X-MS-Exchange-AntiSpam-MessageData: Diq674pMxY3EzE1tsMt2J51aW9egLzhdExhgAUaSSMT59aDXv436tBTM7r5vP2M7B+xuK03Odqs6VD/5rBu1DJy37YW1kRDO3+mVTRBrWQvGxf1z0d11CQMZTo8U8fsaw+QC2XWN4h1Jyo5pQ0f6qA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8d82329d-e457-4889-0197-08d9083a6a9c X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:24.1439 (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 12/34] avcodec/pcm-dvdenc: 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: O0yZ0FNqJxIW |
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/pcm-dvdenc.c b/libavcodec/pcm-dvdenc.c index 97ac778334..1635ac704c 100644 --- a/libavcodec/pcm-dvdenc.c +++ b/libavcodec/pcm-dvdenc.c @@ -119,7 +119,7 @@ static int pcm_dvd_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, PutByteContext pb; int ret; - if ((ret = ff_alloc_packet2(avctx, avpkt, pkt_size, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, avpkt, pkt_size, pkt_size)) < 0) return ret; memcpy(avpkt->data, s->header, 3); @@ -163,7 +163,6 @@ static int pcm_dvd_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, } avpkt->pts = frame->pts; - avpkt->size = pkt_size; avpkt->duration = ff_samples_to_time_base(avctx, frame->nb_samples); *got_packet_ptr = 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/pcm-dvdenc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)