Message ID | AS8PR01MB794483BCE05AC5494E0836428FF99@AS8PR01MB7944.eurprd01.prod.exchangelabs.com |
---|---|
State | Accepted |
Commit | a655b0a50656326d9b0bcec9df3b5a0f4c32da15 |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b9e:b0:7d:cfb5:dc7c with SMTP id b30csp1237818pzh; Sat, 23 Apr 2022 21:43:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuiPN5ePlInRslnjirQlQhx0sDOHCeu3u+vtQ0fEgmXfQi+wGyyvqTKp7Et/0D/o/zOzAL X-Received: by 2002:aa7:ce87:0:b0:425:d88c:bc92 with SMTP id y7-20020aa7ce87000000b00425d88cbc92mr2981625edv.147.1650775434995; Sat, 23 Apr 2022 21:43: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 e21-20020aa7d7d5000000b00423da63c9cbsi7782439eds.182.2022.04.23.21.43.54; Sat, 23 Apr 2022 21:43: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=kIRKpws2; 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 5BBD368B45D; Sun, 24 Apr 2022 07:43:37 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03olkn2093.outbound.protection.outlook.com [40.92.58.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9BCFA68B42B for <ffmpeg-devel@ffmpeg.org>; Sun, 24 Apr 2022 07:43:30 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FFyxs08GXTMnaVggwX+r26GjNBizDBUKc2nylinFqK5WstVYgRdZqxNO9YphvDOPDXOuwM77IiTh7hrqRbHpCcYDInaYYxSlRZTuJwnU6gapD4d2U0sDtjKX/v5rVn72XkLeJDpTDkLg7TcD6xNFe+qZy6FqtEoi6i+wFdy79jumdNEFOgDuMaQOHOvnG963+sATpjcBfodoglDiHl3fw076YlDSunxAqAImWZzn+FOkeoxm0XumaUD82QNqw/J+n4FUAVY6ykFaK4dsvrTkZYFD7oOBDkq9mQhX+5iO4XOaFWTMXFBUi7ooTnl6drwroRxDIpSL0GC9eDUdTuogFA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uiPne4HSKns4rmSiXCtWjW3h8L193GaxbLb8/Me0vno=; b=fGcy/jL+ON0HQN9ioOg5l2P5I51MK/7lvsoJoWV73U6988piTT1zVINqlmrvceEzKkKVTrhoS2tWNyakNmqXrLCGOArq0hisi2GtrIk5RXcryLb4TCILxg68Yknxm65iQa/OjH7HJf+o/qUmBzpQ7rUz3A/4G7jorkN6/IUjzXt6OSrTM4gOidxqnW4jI/I/qbxHrG3ng9OR2bNXU2MzRrCMv1bAvwu4Q8ct5SwObtjy4QGndiIZSI3K+lmg/V30a6sPITbVfY0uDJKovHSMdy1JgpbECW+u/xy98i4o9kIUtnI2LbDQKeMtGIFC325L1VifChOnV53uSB2PATD78g== 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=uiPne4HSKns4rmSiXCtWjW3h8L193GaxbLb8/Me0vno=; b=kIRKpws2DZxuKVFb8kLmsFPjIpWwdFtHTy4dHck9kK4eqWGKAtzDDiTwYqggEtPAbyT3Mv9Qh8o5gaQGSNFlTLfoCHT0Gj6066dmQjaP6XI2IrMr3mQQaCfF5hnEfirQhHTGxkinVxECIshFWJo/U+ti2Ml46j70GYsLuch7+5yk1BvTOu2sGrjas5vWnrZmhzppm2ic1qb0naB+LKj6DVZ4oSgcqwPPBLX7JQb6MjrjeAh1Z9E1wYwKXd/fCHeU+tEHFhrRBwMszKXPFyfYs8cnTfSjxGYZ8UI6FY8XvN+xkAcmGNSUjxxPO/7HxAl6ybSlMkgq3qIIBgfV+YUzMA== Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) by AM4PR0101MB2210.eurprd01.prod.exchangelabs.com (2603:10a6:200:53::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Sun, 24 Apr 2022 04:43:13 +0000 Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431]) by AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431%6]) with mapi id 15.20.5186.020; Sun, 24 Apr 2022 04:43:13 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Sun, 24 Apr 2022 06:42:57 +0200 Message-ID: <AS8PR01MB794483BCE05AC5494E0836428FF99@AS8PR01MB7944.eurprd01.prod.exchangelabs.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <AS8PR01MB79440FF78671075B4A5A8C988FF99@AS8PR01MB7944.eurprd01.prod.exchangelabs.com> References: <AS8PR01MB79440FF78671075B4A5A8C988FF99@AS8PR01MB7944.eurprd01.prod.exchangelabs.com> X-TMN: [ArgIlmhP9r6Cb1rQzCIH/ru5zrmoZJn+] X-ClientProxiedBy: ZR0P278CA0069.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:21::20) To AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) X-Microsoft-Original-Message-ID: <20220424044258.888081-5-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99645271-4542-4adc-b912-08da25acf0c2 X-MS-Exchange-SLBlob-MailProps: q+fD6XS3/UL9mvhPTGbvwy9cgLHAFHXf8J+YI+yoaIpgyyMEEIEpE5YdhQdbTaeZ/Ls41KXn5tyElj42a32bX5RucBMAiyNOweUgvQW6gPZ9Gj+ELisE/p+qSMIVqGib+69dKPz16kcR2VPMXicihyScsclVzjemYnu7++CyS8TZ4JGRCQ4fJFhiwehwN5CMCgHl62t4jOH1zW4eSxNjRt6dXrXkNr2T1Em3F+v3UhcbAfKG9MX9yeiUTB4s8YIIJDpptdvqCV7ja0/L5BlWZLlxDouxhDwhPHCJEzHdQTEVSx15w4qEj9pqMENeDISvudTWMDHNju40FwAkw/cHZ9g+BNQjpY2I+6FdK/2jrORLMW58qGjK8WNx1HR/mDfw3O100taKW1SNGzQ4GJ05UMNRjF2IPU6btCexwx9V19AZiK+evXkU8iYv6PvpMDzZ3iHydH2eBErFwrg1o2JqXxhhSY/eAbqxJY8xCgwZWt0oJuQT2jqrG+gJnVNzf+iJQr+n98A6frwDRZPU1pawQOlw2ZoUtuQZg3Ojr8yjy/KoACj+wIzMfiJmUNWKfhqUPdevqIi3Epd7mEwm4e4iymv4IZu9c+q1Es1PAAzFUCJDcaNGphaaBdawgO8x6oAbTCGy+3KTwdaPGbN1+Fy8uIrmlIkdzEBEzz508BUdUScsECMIgIFSXc0rw/gbehT80dzNvs1zrFIemy+dYwODkg== X-MS-TrafficTypeDiagnostic: AM4PR0101MB2210:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pqQDnMuSZHmwompEAThY5Vccls0Ef4UJrG8TER5EPbyMiS1dedYpPK/Pfw0BXw5cKRGTG9ZXXnDIfoPUPR5XmHbyS8kvfUEOntawKfWsP63LmMMeZ4gfi9kDj7VQR05MXMFA7tIV0TXTFa6iJpyKVUUcXGyMkC0qcxImPG+64W5ZIEo+u1jHIpyHVIhu4AtyfPV0Oh90W/iBwBCMEyk98GSYkmg9yTWYbKygPAJKjaXDg/r1ReiuT3fOyBljD2kSED90ntw6Lu7H3zvDfxcoCCeJ8a0+Yk2UV2EbXAzfvcI79Vg8VeUiYEthfo3+lgB0K854wLTqtsTEnHJuHjUTPMXj6BT9Bzf2Z9Bd7sXjtQSIf523EUngUetQhFal+2/CO5LE5pgvaBhEN0UZkG4TULBuxPicm3ySyOoFnsKCYF/BJzNI1BxskBKB5oGIS65yZ30WpMbfqXQQ4OsfflJHvrstk/GIUsx2j/th34tTc7YsOkSBAB+N03iKJpyyQuB9GlLJabzY2FUDybn4xFi8kr+BoOXS+LOXlcxPyunlvK28TJB1yqADQ+oK/JKh6A9wlLTEIuSpa6ZR/jZjyPIQxw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5QoqaOkb0QfyufKoY86FNsDyTI3uTAIf075uw6vhwcqIAhHM/zVV7k3j1BsHVt8KqEtB1prfRfcC1XHY9z7VgSUkvs4vj7WlzJNPqoRk6JdXGcOscUKcFpAi7AVPKK2g41eWMKIXgAGt7gbMZbXdPw5eO9oCHi+59Q7gQTeHPRiwt2xjipzu2TbZ1SdwkxP0G02QzYu3eGEj9Nk+Jf+chrz5wGlD+hBBvxFciTZskS8aH5WYwAPLgbk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5uafLzYIR8PnvTXtrfqW7Ens1knrbVii6G6XFJdkbkPg8BoEZXUvQOACRfnxS4Sow+D7dyh29kcn6P6HVeLqh1xlsbTXd9s71KVLDYM5yV9gqSyhSXft6DHOxzXUpkilHnIBTVXMhLU9b4sDlH+CnqvRXavOUGSw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99645271-4542-4adc-b912-08da25acf0c2 X-MS-Exchange-CrossTenant-AuthSource: AS8PR01MB7944.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2022 04:43:13.2741 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0101MB2210 Subject: [FFmpeg-devel] [PATCH 6/7] avcodec/pgxdec: Use unsigned types for unsigned values 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: kwHci9r2Z01I |
Series |
[FFmpeg-devel,1/7] avcodec/pgxdec: Make better use of size check
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
lgtm
diff --git a/libavcodec/pgxdec.c b/libavcodec/pgxdec.c index 29de103167..52e2c2a36c 100644 --- a/libavcodec/pgxdec.c +++ b/libavcodec/pgxdec.c @@ -107,8 +107,8 @@ error: } \ } \ -WRITE_FRAME(8, int8_t, byte) -WRITE_FRAME(16, int16_t, be16) +WRITE_FRAME(8, uint8_t, byte) +WRITE_FRAME(16, uint16_t, be16) static int pgx_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt)
Both AV_PIX_FMT_GRAY8 and AV_PIX_FMT_GRAY16 use unsigned values, not signed ones. The fact that the input might be signed in some cases in the original format doesn't change this. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/pgxdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)