Message ID | AS8P250MB0744B050E0AC8DD0F6D67A308F1B2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM |
---|---|
State | Superseded |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:1509:b0:1a9:af23:56c1 with SMTP id nq9csp2271259pzb; Mon, 29 Apr 2024 14:16:53 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXgp+isdGVZ0G8oSzt+NEBIP/3CM57HCirJLdptc2PxLNYfdGyWh+/qJ9JRZQKLOUBiK8qPykWYTocLDJy4u0LH+ndgcdmLo/bJTg== X-Google-Smtp-Source: AGHT+IEt57m7bGOu3iDBsh1P3hL741wj7KP0BfZyGkvvE/eodRkTrhGrLeB7XtsJewBDg45ZVot2 X-Received: by 2002:a05:6402:f27:b0:572:592a:6cc9 with SMTP id i39-20020a0564020f2700b00572592a6cc9mr7871226eda.3.1714425413335; Mon, 29 Apr 2024 14:16:53 -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 f10-20020a056402150a00b005727a2245ebsi2388873edw.97.2024.04.29.14.16.52; Mon, 29 Apr 2024 14:16:53 -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=FXfi8CrF; 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 B387568D563; Tue, 30 Apr 2024 00:15:53 +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-am6eur05olkn2070.outbound.protection.outlook.com [40.92.91.70]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E583B68D54E for <ffmpeg-devel@ffmpeg.org>; Tue, 30 Apr 2024 00:15:49 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CIlJVVNfFVtfWgGqioe4SORu3JHy2Fgfh6/qCzGUQpdrTNSYV4mT12czH1XxJuHoUrFPDvWRXfcP8I7an3o8MCuU/fdIHJ7cWKzOElH2+L5l5fU4x0RByLvnfB2Weu5SPL1Nyn5uErMhznU6C+d/dPcTj+k/JJrAo8z8UQeg6y+RQj04dPdAEuoy/kO+BalnWkOeAdshC7gSrK9xw6I26AOw1uvYrm18BuOZVkACG3VX4dBcw3mpGWCqkkqLHG8al96ojbiW057/CuPW3RQOD28AHTwO6WPU1wS0O+rGH/gJLbPQr1tt0YfYSfGyPw44XUvLCrCasnagvhfbnQ/5OQ== 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=J2qPOOeWzMhQKuSnvw7CR6JqNi2SpXl6PztdpFI/ctE=; b=Br8Y0xdzLBEXvtcrqXtEKeHKvw5mNDz3o225/Q3ajDpGKNyU07hQsoNw68dKIiencWmMjqwU5MD3eZ5I/ye1I/FTKl4Zf4woINMUVPLyKUjiq2dWiGi8IUNTC7ED0x7Yf2NOYKsWd3VWYwXjxDYhivlqQmsLkdTbAgGaR+uAzoG/oRth20R7+A4lI1voJ8MzkJbD0vFelPrDqwsZdLzh9XR++HCkosWE1fxf4N/ijxuTnXKIadba+ClVYIe6GmgONseFTSn0ZrcOKHRvhrZ8mH92q0n5iFM2BqP13dWAPTaiHQETOU5iM52OzDaaKgBbjAd8IsP+pHsk2At7L+eXiw== 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=J2qPOOeWzMhQKuSnvw7CR6JqNi2SpXl6PztdpFI/ctE=; b=FXfi8CrFmj5ctw23jLPGufqxSA5eImOk9lCZlSh0Hsq8USTIS8SQV12uhgeUWhY4yYOkFQPDwijI/TB92WthXa7EVDmFg5Ks0NB5OCux1Lu5El2wnP/Fqk/tdnVbAPrCI7qTxdop+yjdWJ6Fkt7Z33fPFoSIJBlkIC/6MoMx6rOjlAqSq+bKPGsyhC8RK3KzbFig17h3fAkzc5+5stiBYAsEl2IptR3R0R+9778+6Xqn0XEcbPiJMYpCibTiYs8lSRxAhh9NnuwUAdV/OnXN7ZtPYzucr8lzYKz/2qVPW90f3EAS+CoqTNf9aZF2/RHqcVcZJDJbZSVOmEeRJ9h6Yw== Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) by PR3P250MB0372.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:17f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.34; Mon, 29 Apr 2024 21:15:48 +0000 Received: from AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb]) by AS8P250MB0744.EURP250.PROD.OUTLOOK.COM ([fe80::1f29:8206:b8c3:45bb%3]) with mapi id 15.20.7519.031; Mon, 29 Apr 2024 21:15:48 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 29 Apr 2024 23:14:07 +0200 Message-ID: <AS8P250MB0744B050E0AC8DD0F6D67A308F1B2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.40.1 In-Reply-To: <GV1SPRMB0021759DDCCEFEB3B9609B808F1B2@GV1SPRMB0021.EURP250.PROD.OUTLOOK.COM> References: <GV1SPRMB0021759DDCCEFEB3B9609B808F1B2@GV1SPRMB0021.EURP250.PROD.OUTLOOK.COM> X-TMN: [W0TCojFOFrdIRdwLZTru/sbAyM99uS6Tr7QPIBSBFcg=] X-ClientProxiedBy: ZR0P278CA0199.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:6a::21) To AS8P250MB0744.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:541::14) X-Microsoft-Original-Message-ID: <20240429211438.3274834-12-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8P250MB0744:EE_|PR3P250MB0372:EE_ X-MS-Office365-Filtering-Correlation-Id: a8270e4c-ab53-4531-282f-08dc68918ac4 X-Microsoft-Antispam: BCL:0; ARA:14566002|461199019|56899024|3412199016|440099019|1710799017; X-Microsoft-Antispam-Message-Info: eBs3zfUbjHUrm31b+YOdU5ckGeTsnwu+KVaV9Lz9cp3n2giQeOiofMVGl6uJfH7M7LgVRpPhRhYiMKFz8yL5v6dK18kz/AIdv2sFH/kxaSu4NVAdtQqezW2fyadTDU4AZmmNSw/TQg3QqFZwIcg/zRuhlJjvvfgr7vSDR/TDkQgPtAmBEEiaGOjt2fkKzJXUhqjo+CYfjlB68h2l8n/q2bAtzIXfr4MiSCkTh0bCKisfovhUn5CFkmt4taPuZg3Wt9gSQ4W/qKP4NJFEf/gqV/XQiPGBfkMPE9BGANGONpyGijhZRaFNR+gK4OoE7MNuUP9LyKCn65GFFWkUcvA4UnvJfNQo4QmBsdbPWo4+hOjiLsJmAW6VWuahUoH+3BGuZ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vitRQzeb4Rh0vCa9E2u9C7FUUwFWT89iHrrAzIFNosRhLPXWD5N0ASTKmUjNp610nfnsUAADuMxOvPo3053CWWAMqg3ALgXVWCWO6At+krxfZv8HjCMfPBTHjNyLfApV2oGY476DH7Fqgn3/PCKIJa5VH7m6MgD+0JS+fge64FjpQNjQ/aVf30NZXFByMr4Q6+OW5dPNKBHzBYAQNmlUOY8rMpuO9K63nnNlH1oViAJjHFubNK/u2ECnjbM//YCg4Wsm0d6UsNxk43tBydv0wJjmyQieILRds16v6N6TKkdZzGH5GQts18swgyzlkCOJ/GwQcHnvrRXc0r16AaLptXP4QUokwz995adcYVDi0jdoGDTFWUCYvXv1KJuIM6FyGBAtui8akM8Vlv28K0C9ztr4eMlupgwICmvv4aXxm8q0EoJbAwEKJR25sJi8NHOCnW0lu78peizIjzuYH6lI0TXYEPiI4kFdNALw6brJxBndg3uZS9fgOyS6q1kyvyk7a9Iik7pabewpEL00LjqpETY3Kg0A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8270e4c-ab53-4531-282f-08dc68918ac4 X-MS-Exchange-CrossTenant-AuthSource: AS8P250MB0744.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2024 21:15:48.9080 (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: PR3P250MB0372 Subject: [FFmpeg-devel] [PATCH 26/57] avcodec/mpegpicture: Improve error messages and code 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: 8FmEdijmcI0E |
Series |
[FFmpeg-devel,01/14] avcodec/get_buffer: Remove redundant check
|
expand
|
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c index bca0e6de01..d0b529dc37 100644 --- a/libavcodec/mpegpicture.c +++ b/libavcodec/mpegpicture.c @@ -102,20 +102,19 @@ static int handle_pic_linesizes(AVCodecContext *avctx, Picture *pic, if ((linesize && linesize != pic->f->linesize[0]) || (uvlinesize && uvlinesize != pic->f->linesize[1])) { - av_log(avctx, AV_LOG_ERROR, - "get_buffer() failed (stride changed: linesize=%d/%d uvlinesize=%d/%d)\n", + av_log(avctx, AV_LOG_ERROR, "Stride change unsupported: " + "linesize=%d/%d uvlinesize=%d/%d)\n", linesize, pic->f->linesize[0], uvlinesize, pic->f->linesize[1]); ff_mpeg_unref_picture(pic); - return -1; + return AVERROR_PATCHWELCOME; } if (av_pix_fmt_count_planes(pic->f->format) > 2 && pic->f->linesize[1] != pic->f->linesize[2]) { - av_log(avctx, AV_LOG_ERROR, - "get_buffer() failed (uv stride mismatch)\n"); + av_log(avctx, AV_LOG_ERROR, "uv stride mismatch unsupported\n"); ff_mpeg_unref_picture(pic); - return -1; + return AVERROR_PATCHWELCOME; } ret = ff_mpeg_framesize_alloc(avctx, me, sc,
Make it clear that this is not a failure of get_buffer/the user, but a deficit of mpegvideo. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/mpegpicture.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)