Message ID | GV1P250MB0737B4B0524800A102E9ADAD8F549@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Commit | 04196852a2761b6e1d751570ef31d3a6495fd8bd |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp444482pzh; Wed, 28 Sep 2022 11:59:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM41fZmMqgylIJDqYS85oJm3AeL2cqoScl5uoC9kPHkxjHJBJu3QGwtbq7zPPUw1ytqUoraB X-Received: by 2002:aa7:cd92:0:b0:456:cbb5:2027 with SMTP id x18-20020aa7cd92000000b00456cbb52027mr28509131edv.384.1664391544811; Wed, 28 Sep 2022 11:59:04 -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 p22-20020a170906785600b0077d6d63bd0dsi4733274ejm.184.2022.09.28.11.59.04; Wed, 28 Sep 2022 11:59:04 -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=cpsmjcUO; 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 078F368BC12; Wed, 28 Sep 2022 21:58:45 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05olkn2096.outbound.protection.outlook.com [40.92.91.96]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6F2C868BBE7 for <ffmpeg-devel@ffmpeg.org>; Wed, 28 Sep 2022 21:58:42 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nGLZZEfTYzRNw/cSB8a9SBJyCMSu7TjxNISvpqNQUM5L3WTHAI1PlSbAkvm9CNnFNMCdMqew2bMjb2tGix6bfiIwz/6MJKv0DZNsI0THMo/cdjf6ldSDTgPIgPyDBfu1HXmhuZ6OdC9CxtyVofx/zpuL6dXMVTHPMnvbUiOFnUa/x7Jqz8qLjCNolRuQ4HLwkEL9xyM4rsCeRFZd3U2n54R7ad7B9QN4dSAbthVimIYeRsr8D+3rNwJoz218K+V6wWow8+DpT5ZZhWwtpVxDNjyJEKJHBeKHe5KoRzF8xUAEQECg8wCNNjQjGg1S7gJM25Ki5qGceUKkTiH1NzTlBQ== 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=50lf45X2QHs4P5Kyv+vkWxQE7TNeg7vK/2Ugv8XX8JU=; b=NZdJk+D1phyGbDDLdkeJ1D9WSMp56fWqI6rnkO+aI8TIm8OgEhYRdRAY824BcLScqfAtLgtCrjdjDOgGQPlFN8seuvGIo2+UaOUVn1mWZg7+kvZfA92w9nUYPqgEZ7PV73FNTPuSOYCVyqPTW2IkHM3GF84IpDbxpt1AcN5dzBepYrUSpJ+PRMlqiB78wwYHwqDPNBsu0L4sqwStWoK+Y6WL18hqEvPr83IV5m31/6WMcaYIH+g1K254XOztrojTZYw4fDAdzz22ffdpbmCC44R6prpmLO5F/opUrgaBdrvgIessL/cHYa+c6/pLCVUhsscal7JqEdUlGv60KgNjtA== 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=50lf45X2QHs4P5Kyv+vkWxQE7TNeg7vK/2Ugv8XX8JU=; b=cpsmjcUOrjg4cNQrPqzW3VciAGnr0X1R9qUbTqTVFJdHP5nxndsh1SPujgBfIPuEp3CwQWKolgJ17ujEwcwjp6jnTTcZKIqdSBLStbzm3EsyYk/2ZB6Z4kefZb01+RS7sAxWQ3EqabwuKWBq+N0Czwfxm3CxgvfCnet6sR3mLIB+aKNaDlk9WymuNUDI/p1RkVqbIE07JXSlFYZg1nCD+ZPm49PFiuobuFU5y8mLhMnflyocomMm8+p2wS+n1EdQeqevUXiED3JpBW8KwuLmAygcvlJFwVzvcqjVz5YYx7ukH6CM8cVkwF+0r+AxkQcCXBfKY1vagPepu7rY2BWTtQ== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by DU2P250MB0014.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:2b7::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17; Wed, 28 Sep 2022 18:58:28 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::68bd:2fc7:ac52:38f8]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::68bd:2fc7:ac52:38f8%9]) with mapi id 15.20.5654.025; Wed, 28 Sep 2022 18:58:28 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Sep 2022 20:58:18 +0200 Message-ID: <GV1P250MB0737B4B0524800A102E9ADAD8F549@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.34.1 In-Reply-To: <GV1P250MB07375B940CCAEBC469BD60EE8F549@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> References: <GV1P250MB07375B940CCAEBC469BD60EE8F549@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> X-TMN: [bgGZ/kqdwVzlffuhJ4u0jMt0G3pKI2TdS5mXOga0aU4=] X-ClientProxiedBy: FR0P281CA0051.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:48::12) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20220928185818.1074689-5-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|DU2P250MB0014:EE_ X-MS-Office365-Filtering-Correlation-Id: b5b19b6f-7469-4d54-e31d-08daa1836e1b X-MS-Exchange-SLBlob-MailProps: AZnQBsB9XmpPcoZqFl/i/jhf7c/pX34TIhRZ4XrMf6uy90tcnaIzqphrYHfs7JEykXRQA0LFejH+0Cy4K3dTMm0ha6Z///TxhyT9NSUQTIVta2GgLS+JbiQQtO3m88ZO24nmE1O3Vay+t3+T6lvi27ToDb54aKcyz2k+e8dkLVlaFYbY1V9UtqmHds8lWKKn399RKCPAdifWrF0ayRv1+5Br8ccP42t6obryxSaZBUYKETL1mSFDPx38WrrlSUuqXegF4YH7POKSQSJsCJwE48zZxgJgYJ7egxpf8qSb7uskCRAnQwRALBQ+Xpb++QOShyUgsRgfiQvnxhjY3kEgMPEU1v7dqt51XubCxUeIHW0X8V3fwXZHttfAmLe1bZv4DXBrmMSk6iNvN7/pV2pIlLkahg9tvp+E4eLWe2CDLI6GBgO3wHzgyLFu/o2EiO8JRWnAmq2Gk+nsWaPGZfSrCzlzzFF2+9ZmA6JfkPKK6WLwwYoJwnd/ZBhFmp/LuSMWphgZoarJucu2O6s3BKSqr/Nt38ybD4wITLBqeg4HjbJaFAc67LMirrW6I5l1wir4Pkfn58IIa3K69vwa1480fj7NRMDQCPhxNGGGgmDk5AzQMGaWhfbcff0cC/8SscWeA4ExN2xgELbKAstK2fhjOJE2DNDf21cz87JD1p2tnCL9sD3+CatVuuFkrG9SyC4z36a4dNNO0hKrX7QNb96Np03AUipRKL3oChwrmu3J787QGf4H0E69sUc+Csyuv7QWKahTzNvjXBc= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: og1EFfshqirc/fuJDv8y3Pqq8X1MdAs/rLRXi4pmUek3MwsXNK1iCyazHdo4sD7FTOnvvHUwY2uNEj0oyyvdjInW3QuJQowydq/kH6/Ty69gemwfV+HeHNso39iPj5DtvTN7sNPf5TbjGbfgYkoe6vS6+TKAvVvPy9f74RAwYeSwqNTyIzU4z8oNoyoYX9QDjGxe6X6nP32UG441a9hOLfwVHb/K+KJywErSeuSZ1qYhfSri+H2o/E08iG6whkZeFF3y198joC1aEgpt3ynh05uv2TrijDp9PEvJw3GVXhtMdrs+rPLip7p6rrbptxR2skM9RHpKBNXouc1bIqyOtd6dpIDNXCWKZh74zTTHZo4j3glpjxk3kl1bvGIATrz2BJpvpKOCC0bWHDGPKJsbuS60Ggon3P6SW2SBg94rIuJAdL0mfdzQc7I+fn22Pk7IoT8HqG+b0yQKQqVxCkmB6F6u6ETDLnYqmOltgbqU/TOHiXkt34zdpSXrbSUVX2vKE/H2VnedaAP3XzBij6Kcv2m9QOktiUP0XP7rIemOmvTv5vQ+BnnbSzXgvz8lx3p6Nh4usVfdYYRyCK/8S9iD3/9wmYuO2ozRIDAAPRFJ+BjArxfXl+sI37xqOyeskg3OaSa6ZS249NUH5VG0MsiMwQ== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SXqeJuhjIvNxO9i7H1StxhgUNN4i/r/Gq4NOj+sZQmuvzgY4aOFoAMmbzI49bho9wGQAhxUSiH4lGElKdr4AdhJ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CMyFfF9xJBkb39Il68ESEAQyJcOed2ed1+E6KddXOQ7O1AiilcEpURPifdIctWdV8FuKKky8lWKu5k0qIpEJtUw0iTB7ORn5eEcPBjI/pgPen2ze/BkihwvIzaZvlYiCjekAbyiAh+e454GQU8bGjUICF3T/71S2jxSf95n1mg07+ X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b5b19b6f-7469-4d54-e31d-08daa1836e1b X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2022 18:58:28.8642 (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: DU2P250MB0014 Subject: [FFmpeg-devel] [PATCH 6/6] avcodec/mpegvideo_dec: Fix UB NULL + 0 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: UtRcJQD4VzUx |
Series |
[FFmpeg-devel,1/6] avcodec/g723_1enc: Remove unnecessary av_clipl_int32()
|
expand
|
diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c index 5b37e79e36..6d1edc027a 100644 --- a/libavcodec/mpegvideo_dec.c +++ b/libavcodec/mpegvideo_dec.c @@ -446,8 +446,8 @@ int ff_mpv_frame_start(MpegEncContext *s, AVCodecContext *avctx) if (s->picture_structure != PICT_FRAME) { for (int i = 0; i < 4; i++) { if (s->picture_structure == PICT_BOTTOM_FIELD) { - s->current_picture.f->data[i] += - s->current_picture.f->linesize[i]; + s->current_picture.f->data[i] = FF_PTR_ADD(s->current_picture.f->data[i], + s->current_picture.f->linesize[i]); } s->current_picture.f->linesize[i] *= 2; s->last_picture.f->linesize[i] *= 2;
Affected the mpeg2-field-enc FATE-test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/mpegvideo_dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)