Message ID | HE1PR0301MB21546D1722F1AF71730A77138F5F9@HE1PR0301MB2154.eurprd03.prod.outlook.com |
---|---|
State | Accepted |
Commit | 60da5b87ad5823707254aa2930fa5950e45facc2 |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a11:4023:0:0:0:0 with SMTP id ky35csp2015047pxb; Thu, 29 Apr 2021 16:58:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXrrH7lOHBpVNQnunabDgPo5l4ggVVZRQpYqYW00b5k8WDSXQkw1pxt7u3Chks1IF8RvNs X-Received: by 2002:a17:907:2cc2:: with SMTP id hg2mr1069191ejc.62.1619740737813; Thu, 29 Apr 2021 16:58:57 -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 gz1si1469583ejc.342.2021.04.29.16.58.57; Thu, 29 Apr 2021 16:58:57 -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=DqbCCvkO; 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 B395668A214; Fri, 30 Apr 2021 02:58:11 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR06-DB8-obe.outbound.protection.outlook.com (mail-db8eur06olkn2070.outbound.protection.outlook.com [40.92.51.70]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id AD2EE6802E8 for <ffmpeg-devel@ffmpeg.org>; Fri, 30 Apr 2021 02:58:10 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hpTT4iKScgPlB15pNKYz4/UWqsD69ZkxYYSxAskl/046ITAKlCO33g6x5EvuYiGelh6QA3PZhTfu9gtzROZvntYvM5hdNu2pamZo1iQnxUva+wxmpNhzhguxBE55iuVhmMv9X8/1yDocnrJ9WewQSTxdxTYovILtNtEu5hHt0TnSKRxLEOCXHe01gMu7mwucCm81TV4t/EIeTDFPr/+RS75D7LQz+Z60k13cLBDpcX3NEbr3fEE/GfliOcBtHYJSPknFVqKHlxCharp5HHe6hFqKX1S9Komx2tKktrEhn/fGjPr07mvVGHBlSHRGxjtbNySMCuRD3NADKSb54CnNMg== 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=4s+485nZuWmZnI+jlA5Ws+BbyOGTqGlk+0tJredeCCA=; b=B1jc3IS2VhPM4dB0QO+4mxWAY3soJZo7zg3Njh1OpGfUThp8ekQXf8gATBgkjlfWSL12oTUoENmQ/4gfxr/fpDuMNEvkyIU+CjNNoJ8i1LDpl9DTdV8JojlyGYCVIwG3EklPMAapAkK1qF17feJ8PcwGd68CJ0JVGPKeDtbnLZcrQ6WFYtKbDJ3GqUZYBULB2k8l9XPLXqwByTo/IdnIsLu3/PxYqgFt5cQLsqcnMjOCb/sfNiXSDbjT337a9Q2q/+Jl5VTDIjuX6T86sfs1hM1A/0RsHpMAx7evkwlehiX5zXwtJEsV/HaAW1uJZVqtY5t0YPyP/gLG5Kt7+NlQIA== 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=4s+485nZuWmZnI+jlA5Ws+BbyOGTqGlk+0tJredeCCA=; b=DqbCCvkOjIeV1PqQmD3Y8q1SPxU9zH2iQg6GduZm/Mv+l3SVrEyM1lvm0jDaYKusSfUdbMGOK5MqePEcOd3WBquOOu1olk8wTbV5bRNjPEsSQ2DlS7t95TGGdGLDJ/voQ+y1iV30ZY3poeISyhMu8abzEMs9cQKasK0PIe1nnn/pIfWburGA32pM7O2ae+7e61rDs4WKN8Oo+xXJ9NxmaxX5c1nk44iagO/DtWlfAreTQGvthUuqd2HZpZPDjXtuDu8obMgoCCMKkVpmJAOOkaUx2EIkdFbHsPI0RzYEqVvkG+WH3N4+hkBFRV0Rug7DK4cJcGomPrk90EomYbjuFg== Received: from AM7EUR06FT005.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::51) by AM7EUR06HT202.eop-eur06.prod.protection.outlook.com (2a01:111:e400:fc36::277) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27; Thu, 29 Apr 2021 23:58:08 +0000 Received: from HE1PR0301MB2154.eurprd03.prod.outlook.com (2a01:111:e400:fc36::4c) by AM7EUR06FT005.mail.protection.outlook.com (2a01:111:e400:fc36::397) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Thu, 29 Apr 2021 23:58:08 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:E786EBCC0B94D8D765DE134F1D531BB547215B71A6909E9793C0E87E77F97488; UpperCasedChecksum:FE0984EF297C8AAC42A961057707840EC84F168652882577560BA888ED00F013; SizeAsReceived:7590; 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.027; Thu, 29 Apr 2021 23:58:08 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Fri, 30 Apr 2021 01:56:41 +0200 Message-ID: <HE1PR0301MB21546D1722F1AF71730A77138F5F9@HE1PR0301MB2154.eurprd03.prod.outlook.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <HE1PR0301MB2154FA2BF76462B67F0D851C8F5F9@HE1PR0301MB2154.eurprd03.prod.outlook.com> References: <HE1PR0301MB2154FA2BF76462B67F0D851C8F5F9@HE1PR0301MB2154.eurprd03.prod.outlook.com> X-TMN: [h98a5p/hsPzmCn1iTQChuvDzCTXfEAAx] X-ClientProxiedBy: ZR0P278CA0088.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::21) To HE1PR0301MB2154.eurprd03.prod.outlook.com (2603:10a6:3:2a::22) X-Microsoft-Original-Message-ID: <20210429235717.2067041-9-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.193.248.86) by ZR0P278CA0088.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:22::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Thu, 29 Apr 2021 23:58:08 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 0e2b6034-5ab7-4918-7284-08d90b6aa36d X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNU6XUx7q8EQ5McclV510mdNanTThyki/Dmg1Rk7pZOx3N3XuSQ2Ce1vLJRcVyWdiChzsyuwM9MkydU09qfIonwq2KqQr217wWOLCwr6r+mAwRROeSUgEjS/NMpYR5e4cXcR16efRv91X6w8Xe9mXSdLFRKq85cGGX7Msu2Rm6VNHxEMC5uLFzo86mSue9v8PP7VcCtV3dfnyrTX1dJGLYcRUZ+s9ujYwkm9G9RluIzP/ElQJ86bnv/QgiO+oAmjW2urNFngVkia+nxShpCxqKK4NeJo43640CNckmBEe/HX5gk7/AEUrsBDnIv/qNV39qYSFTQ9hQi4LB8CG8TCzmd5uU2bYEYDdy1FwdSHECWFsNE0vt5DSU93XfvExn0G19y/hDToQVpw1LispLdx9AyuL8xGiolRJeuvsIC1uZ6PhGELrH+SGWkvIrHZkc74AcZr8pwDg3cY4INONO/Hxb57b6yjAMfQBAY0JYI4AntwM43YprIU06NhKQGGTlzvLfKE+qKmd5GUWifPAeIdPbQJMnUQZILYtQdHEKCuDC6iu1oYpgB03P30neLMOF+WPrhgyVJvwclSIz2wJeHuxNb3PDwWjc49EpEMcrrZfbczhj8NK6aGrRKZ+88aUakQS9ajuWZ34IISD3QmJ6nGtclymC2gFU905aDIk8k6/K1rEh+1q3sxNRMRxT+WNgzpuDXoiwdSEM+nBA8s2fncgiHLHQ1NoHCLlwA= X-MS-TrafficTypeDiagnostic: AM7EUR06HT202: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aDbBXP/6OQ5rynVh7ONCkuGZ/mzD38VU1ylWQzGNafSaVPEFMPxCocjvp0X6ab5MfqRPThw3CLAbj9SewPBZJoD2pn1eKsvvVJlrtpWzs+Rmgz73PUhepVUPQYmItkuU5h5y72mpKhSuxCI77UYr8wfIYHNkbnn67tJKFad1kGFLc0W3EJoPjG9cFpnjAcHNWKHpdaPs9HYWJRHSXAIR8JH6NZGuGX//I3SQ4gPzwIsZxHJ6fs4cqOmvl5fmdpEPvLflfxMC8kMnUOyZ9vQMwBN8PP+vG+smPpaYhD7QTNLH7VHPJuocJMOMpb96ccv92KxwktGDUtCi07Yr8i87eEoscqiwrt2oAz5NyiD4v8P6T2l2FZ1rGi9GAE5iumbtFmq2gkMtDmjjJuWN7D8G+w== X-MS-Exchange-AntiSpam-MessageData: DSif/CFNG3TV/KUYJfVY3KeVFpSBbpnaaYJgmKntjPDxGKuy2Pd0ig14iHkAVReEBEn6loRRr1BAkMUf8q2oMZoIafClqyLazOTmqSS8b7iNur6axnJOXXVPnd7T8mjXAHgK/W87IvH4DeXTRXIvyw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e2b6034-5ab7-4918-7284-08d90b6aa36d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2021 23:58:08.8102 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: AM7EUR06FT005.eop-eur06.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: AM7EUR06HT202 Subject: [FFmpeg-devel] [PATCH 10/46] avcodec/bmpenc: Use memcpy when data has desired endianness 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: FlSH6oapugdk |
Series |
[FFmpeg-devel,01/46] avcodec/a64multienc: Avoid intermediate buffer
|
expand
|
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
andriy/PPC64_make | success | Make finished |
andriy/PPC64_make_fate | success | Make fate finished |
diff --git a/libavcodec/bmpenc.c b/libavcodec/bmpenc.c index 409564d257..0082ec675a 100644 --- a/libavcodec/bmpenc.c +++ b/libavcodec/bmpenc.c @@ -20,6 +20,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" + #include "libavutil/imgutils.h" #include "libavutil/avassert.h" #include "avcodec.h" @@ -139,7 +141,7 @@ static int bmp_encode_frame(AVCodecContext *avctx, AVPacket *pkt, ptr = p->data[0] + (avctx->height - 1) * p->linesize[0]; buf = pkt->data + hsize; for(i = 0; i < avctx->height; i++) { - if (bit_count == 16) { + if (HAVE_BIGENDIAN && bit_count == 16) { const uint16_t *src = (const uint16_t *) ptr; for(n = 0; n < avctx->width; n++) AV_WL16(buf + 2 * n, src[n]);
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/bmpenc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)