Message ID | HE1PR0301MB2154399889CF89037738476B8F439@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 e20csp3458618iob; Sun, 25 Apr 2021 15:37:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBZNibGTQ83G7L9kbbHTuhwmsPbeuRDQ4lckzcc9daDQwE0/qU+Txv/+9f1uuLgHVtxfFX X-Received: by 2002:a05:6402:34c2:: with SMTP id w2mr17556889edc.71.1619390231027; Sun, 25 Apr 2021 15:37:11 -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 r10si12057029edw.336.2021.04.25.15.37.10; Sun, 25 Apr 2021 15:37:11 -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=cueqFfI0; 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 28BC4689963; Mon, 26 Apr 2021 01:35:34 +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-oln040092065038.outbound.protection.outlook.com [40.92.65.38]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 11DEC680730 for <ffmpeg-devel@ffmpeg.org>; Mon, 26 Apr 2021 01:35:29 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CjGyDf5+q72lZScVuqjEfZqP1RfIwcN5xWj1OmvjU3DFwtL4VVA45HLtUbFAlM1AU5JEzH9/xwBjOAYjotVKWwcxGMDiRLuY8KD/Ucl67PaPNBQghwErIH+CBBDrkx36wxKFUf2oQ+dhuAN5u0no1tnoOR/Cxdv05cgSI3lspyWfrFZQOWKDd8BeHoTZx6oii9qRqVTlFH6rIv9krxhvjWMjZh9IcZuwTc23AOpw1CtENsogpO9G6LcwkMR3ArzPsOUxnJi1hCnQl8f0t7EwxGCMEfOIi6IUIyYR6tgnzFazQ9uDdqE8VlsOAas8bbyipiqQjlOON9fj3d03XoF6jw== 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=K80jS3P+YIhgB0tP6ClRYQsOpu+FpM2qA+ZTY3MppOo=; b=nzaVFtC+wVNX4q2cuWvaC7Qv1crQqd3WpKQUO4mEpIbwuBVMp8b8Xx9lfZKdVMF+vXFV7kKydeNFtpzHTZdWfB20m9n2j9eyXDRLpL+3NAPihY8347Uk0oabbxRn3dW60f/3BRdFgeGEHfgSZhPSK2EOPJRznw04mC0E+6bTN0layfiK2umnuI4PzcSTC9aFNznhHrNArEMNd6hx73Ahw5bkm4eQWCJCXAgSotQJYhPEUBeACeqXqxovI2YrKiLtWPk7ktp4OW0xJ6NdCj53hmNRMdIaBUhrad2S04YeJL2ka5Dgr+JmQXwLIUOVoRxnIwmxL3CAS/7vMfkcMtYltg== 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=K80jS3P+YIhgB0tP6ClRYQsOpu+FpM2qA+ZTY3MppOo=; b=cueqFfI0qlZqgD9D6Gf90k6PehEjzS0iwHaqzkbnzy4eQjyw9sKEYkLOBLZR7SV6LqSkw1vJTLpfCA8UkW9Vs2N0SLQnr8x6RqQviDRortCNIR1WWgeGgGbExvwv51DQ098Ut5I1Wkg5S+XK2UwmU0CaTSHKUzktrvupydIaOtliWPBxdIXuEMvBy2AlL/1Nk21lQpLlt5vqLn5qGLNzsYwSTDdkSCNZ61o29eGHbXBsdI9S3uy0XliimSvjnleDXM5gmj0Ijd67adIDGWgOsCjFP9eiHVFKj8IVf+lY0e+ugc92vSusF8arqpJ2DdaSpBITtwvpClKX1wWWqVqAZA== 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:28 +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:28 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:9AF65F981095EF8387552FA6193C7A97D03A682FB6F692D59CCF8A3C9F378477; UpperCasedChecksum:D7ABB36EFE86C03D217B762B192A349289B6CE0E9CD0843D351403ABC3F24E4D; SizeAsReceived:7583; 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:28 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 26 Apr 2021 00:34:28 +0200 Message-ID: <HE1PR0301MB2154399889CF89037738476B8F439@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: [W9mSV/hX429yLImi8MVClcC7f70bITM3] 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-13-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:27 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 0d4e810d-a8f4-488c-d640-08d9083a6ce5 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UKBTepCewFwVSkfoADfkQpyLSgPZ3++pmO5e8123z3tRlYeyjUV596mrcGm6nG2OFDysInMpEcEFrGTtZ3gftZ9iPwPBl08gIP9qdF0VU3YAwISyCj4hps34DRvfgcjFNQVnsNDG2dlTHO50Rtm9DWMnN1B2NItDRZH/5L87gPoPXqiTdarAl8Rnw+1LRhQv35FBgynC0Hpo9UIx3LwUgAtT79XJ8MfEXf2Sk+8G8244iyAXfjunAUN3f/aCABQgq32gtjPWbipOriI2W6DglQLK2DQRK+lNq/Qdb7WjSH+fPOuSgM4/zPUJ6GBzsE5uOgyIzoKxs1IEuQXGGfRu4VesztFo8mSiVUogcfk9UHTtkI3XpOhQ1BklWiSpH70QqdkKbcewUzbs59TZ5lSxpK8VuJppMWbs//B4/FYQtYpBZMjA3wI+7iVQxKzrSkrHF8ihEjQXcn7IVBPA4dKRM6kUSZT/i+HYBFetfb07rcV3MZOT3LVWDm7FrIYmn4k89jOTcCjFfpU4sCC7pgS+m+goELC9z7TgNzn95geAVlS0oP+ULDybS46k2zNQKxj05+AOZlAK3ri8krHeWCN3stQF687gqGi65upZCivxRAKweB9KhI854ngpaMXjmb9aQC+8wx8ft7kbt1hQMck9piAe6bCl9w0Jkqz5veCDbwNH0gryBTgN5x4+SHeY6hWQaxH4ecG2fd7Ng== X-MS-TrafficTypeDiagnostic: HE1EUR01HT107: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8Zp70xuYQmqxko6jhOs17CYLAnFa6HMDtPhWKiIpUSz0V6QrxQFMMfkqOm3FXRWYKwIE9VNC6OHrEjqdBMTtrRpeIoHKyGtYcAuOLGc1SgiH+AHfA97gg5pIlMmafBiwOLKKnKAw314/nbEnDfUOTDlJItRS9JBRaxu1fBcJrZ7g6HbW0NQ1hzVBOKQEgBfER8MrIHsDpJHnjVKGPX9iHO0swSuCGTeAV3DXOgGeTRB33Nx0nEKEeMRUGZ6kQvoLzAzdyEyHORStGB4V7EIUvwXbynwaR0shYjTRGRWDlyvSOHMfn8dAgzGuooiG66R+eSrS8eSKPf6QfVPBeh5zJfT6yjgfSDy3rqlni7N2ZXy6jPhRbEINtqVQqqILmUlcdJKQlF3W9I82Ww3eNWpgCg== X-MS-Exchange-AntiSpam-MessageData: wR6PvFazb5pIDsBzkqN1tuBn4Ml9R2mjB0pYDkIRDWX8jkLwRWL0Wwov7B6MkFQVRiY11qL5Aa8H4sszS+9sHbuGQa2nDaA4EiE5TWa2T3wTq0/RUsy1PxeWI1ZMFnoqUUv2oG2tGebhgLPYpIRnlw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d4e810d-a8f4-488c-d640-08d9083a6ce5 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2021 22:35:27.9782 (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 14/34] avcodec/ra144enc: 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: 7v7Rlprb24za |
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/ra144enc.c b/libavcodec/ra144enc.c index c6965c5c47..9c8583c68c 100644 --- a/libavcodec/ra144enc.c +++ b/libavcodec/ra144enc.c @@ -444,7 +444,7 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, if (ractx->last_frame) return 0; - if ((ret = ff_alloc_packet2(avctx, avpkt, FRAME_SIZE, 0)) < 0) + if ((ret = ff_alloc_packet2(avctx, avpkt, FRAME_SIZE, FRAME_SIZE)) < 0) return ret; /** @@ -533,7 +533,6 @@ static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, ff_af_queue_remove(&ractx->afq, avctx->frame_size, &avpkt->pts, &avpkt->duration); - avpkt->size = FRAME_SIZE; *got_packet_ptr = 1; return 0; }
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/ra144enc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)