Message ID | GV1SPRMB0021EFDC66DCFA3D43FCA0568F1B2@GV1SPRMB0021.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 nq9csp1698594pzb; Sun, 28 Apr 2024 17:36:41 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVl/2HVsaKbCkJUXXs6hvyqIBwVAFmjnP+L6523jc0BnXDhB2cY12cIrO7AfLks7a87EztZCzHAzCDSWizB1zPxAMvxx1BOTAWXCA== X-Google-Smtp-Source: AGHT+IEPUuNBZUkTZKwrtkXTnBmrt7iwkeJ02fUaZq3YFMlEdJtwoBp3LFer/qZt5gfy1ltw45Fq X-Received: by 2002:a05:6512:329c:b0:51c:778f:b569 with SMTP id p28-20020a056512329c00b0051c778fb569mr7127407lfe.29.1714351001237; Sun, 28 Apr 2024 17:36:41 -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 s4-20020a1709060c0400b00a58af41f281si4788226ejf.735.2024.04.28.17.36.40; Sun, 28 Apr 2024 17:36:41 -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=Mo84EsIo; 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 45D1668D474; Mon, 29 Apr 2024 03:36:07 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03olkn2048.outbound.protection.outlook.com [40.92.59.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BBFD468D44A for <ffmpeg-devel@ffmpeg.org>; Mon, 29 Apr 2024 03:36:02 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gtc4NjkVfMMV8fUKfx8+c5H/H6Yso6cO3DPgrjpUehV510Dun642jm5KhU2BNLkt5h6tEysQhfyyp3Cg/OrJatZy9qBS+HH02k1c6EAkJIGnJjv/WEa4rSRtCrNjWjhWwN8QOh7tuc/sIvO+RW9afmQjxvK5n5sXf8LtFQOt/YdoYtNcGC8kxp4WA3f6MkHKLlB/PQbVopbNcoQIttqIWwBpvhkA+aJKRFK407j22Tek876YIv4sU5UnO3ezMfNjjcx+XTuQdSgcdG0lyiypUDoM1lW2Et8z91jFxvj/Brx4t3myUHJbd9CCjb8w+KziQuEM2WRNzmeuO/g28kTRxQ== 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=DyKBmAL/XkWkSSk6VPgVU2AHpYGax7f5cH2EFriP4Bk=; b=WBOZ/X1iugcEJ7WxBf8vQjayfSPNup1WMLhlrAEQDwVw8/VuAUGKVS8BDb1cGlM3fRle/q1FBbbzFtcz50oQdWd7IfedrQbvB4lOYynP/GuZDDMtYpnB9Fm1KezfWp1Slro9RitX+E7kHENApJnTAVeekFuxPKCWZ+n/gGZLm6ZuAAjA7zKq/R/+oWNqvPjQDahuW4LDmJOmBzOoVNgAu4ZAiRg+p2lPljN0kI6HG5t9jw2CkijDMDrLq+U8PDHMUItguSbIMV/RRFQZp3bIHVbnJ4Qx2VnUwsCFAxrG9ieLXu1fjHfeV78oxI4yH2tg62Lok0ejccE6kqBzI6v6dQ== 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=DyKBmAL/XkWkSSk6VPgVU2AHpYGax7f5cH2EFriP4Bk=; b=Mo84EsIoiwZNBy0QJ+D1RMGxS3AUB7/XEWhLOMRGIfv3LVPwu0g9JTcynHDuvPXUeFg7jM70DN4VTfYvDdRksAlvT8bUZl7YmZOAywcOmLKlxfYh2Fqu1gPLgxuJXn2pZSSWazK5zgjiHojIZl5IsvpTdMgL7OSk4bacqiG8mF2bmM+MVHPWxfWQ0UXYk0B4UTUanu7pI7LBq8rrF+gZrxN2HjcTRoGYDU87+MzqdldUOJr8gPVM8qUl1cJ3IWV4J5hlD+ZDlkI6rDJljCFky2nEZ40XiYwf1/bg6UWh/pExdDJeAjQdYRKQ/2X72BeGYf1aIWNEO9lXeZiuU5NUiA== Received: from GV1SPRMB0021.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:60::6) by PR3P250MB0068.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:173::12) 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 00:35:53 +0000 Received: from GV1SPRMB0021.EURP250.PROD.OUTLOOK.COM ([fe80::4eb:f54f:b451:34fd]) by GV1SPRMB0021.EURP250.PROD.OUTLOOK.COM ([fe80::4eb:f54f:b451:34fd%4]) with mapi id 15.20.7519.021; Mon, 29 Apr 2024 00:35:53 +0000 From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 29 Apr 2024 02:35:29 +0200 Message-ID: <GV1SPRMB0021EFDC66DCFA3D43FCA0568F1B2@GV1SPRMB0021.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: [czUycCEIicSETz8J5m5LYgfXZSs/otnE93GFa4KuuJ4=] X-ClientProxiedBy: FR2P281CA0080.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9a::13) To GV1SPRMB0021.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:60::6) X-Microsoft-Original-Message-ID: <20240429003535.1516058-7-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1SPRMB0021:EE_|PR3P250MB0068:EE_ X-MS-Office365-Filtering-Correlation-Id: e0956d22-7d3c-4c4f-c38b-08dc67e45386 X-Microsoft-Antispam: BCL:0; ARA:14566002|461199019|440099019|3412199016|1710799017; X-Microsoft-Antispam-Message-Info: leAENJQTuPQ5FGuwobGMM0hoPRjKqO53d3dxl3aaBuwoSsOHvK9zZsLLtCSR8JebR0/ougMajNoG7PKp2iwtRau/h0vMAx+sV9J79GGT9Oh0/iIJpGU/yNiEVXl2CEDsdg0c+vzP0WSlVho+1CRThlIoWC+rgEgLoy2n21R/NAlnhc0u7fY0dKjOqU2StM6P5IXqNxU32QAWnzjpw6gDsQ0sfqyJZSHrzOWqZGN5++A0L66m39o3kS2gbivp87yOmdL/IuzV6PUZuq6VWl++SEQ7lbW8f9if7YWcV+LMxonDrMTpH6qBi9OwQvA/xZoq2gpuso5kSzLYzc6HKgN2RBwy0lmXrMbJx1dpXu/0QELxaGHcLZM8zBY6yXzd0LO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O9gQNcuqFExi/Ct9VcRU14ck1rVqoW61xRpUla66eAVUu7W169t7MTj7a+iFZlSZYKtkdRXOfbF2/rAZBCvhCc3prqH8HiFT/iOaA90neNVO0Y/6pWe70YYq35RrxOAQTcQFBV8VzIS+ocsJKIcAD90typ2ctXKUFbGFaiEJUbRkrp9tuvhZ8okuMVUX5H2vLRpI9kVKI0iM5zXs4G63xI4mn6U16CCGMZ+rqHNfSSZQOXrdtP5tg3dh8kpjCZd4T6nSfQ1SQtOqtz67tVkyQxrhpPzaccJp36F1aqogSR6Ep/naPoqgDAsZxEnYUSNdRxKhDqcPXpmrNkyrW+1ZbRblgnQ3Ez2rikNX1xNrnR4qzvJIvtCAIe9BW+X/zX3+3lliJBMzEpCJEiFrqtOUEgVI2t6efsSQFt9wIRwimf3e3IXn3+u2tdDBTYCUwjwRu0dske2qgBRUMsaZfbiUcedmcw874FRFgX8GEjlVtNlbsz/jAHRXAyMuE2beN6l1wFUyBJfrCd13qV0lxKDfy5dQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e0956d22-7d3c-4c4f-c38b-08dc67e45386 X-MS-Exchange-CrossTenant-AuthSource: GV1SPRMB0021.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2024 00:35:53.2684 (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: PR3P250MB0068 Subject: [FFmpeg-devel] [PATCH 08/14] avcodec/mpegvideo_motion: Optimize check away 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: cG7aETnRq2aM |
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/mpegvideo_motion.c b/libavcodec/mpegvideo_motion.c index 01c8d82e98..5b72196395 100644 --- a/libavcodec/mpegvideo_motion.c +++ b/libavcodec/mpegvideo_motion.c @@ -719,7 +719,11 @@ static av_always_inline void mpv_motion_internal(MpegEncContext *s, dir, ref_picture, qpix_op, pix_op); break; case MV_TYPE_FIELD: - if (s->picture_structure == PICT_FRAME) { + // Only MPEG-1/2 can have a picture_structure != PICT_FRAME here. + if (!CONFIG_SMALL) + av_assert2(is_mpeg12 || s->picture_structure == PICT_FRAME); + if ((!CONFIG_SMALL && !is_mpeg12) || + s->picture_structure == PICT_FRAME) { if (!is_mpeg12 && s->quarter_sample) { for (i = 0; i < 2; i++) qpel_motion(s, dest_y, dest_cb, dest_cr, @@ -739,6 +743,7 @@ static av_always_inline void mpv_motion_internal(MpegEncContext *s, s->mv[dir][1][0], s->mv[dir][1][1], 8, mb_y); } } else { + av_assert2(s->out_format == FMT_MPEG1); if (s->picture_structure != s->field_select[dir][0] + 1 && s->pict_type != AV_PICTURE_TYPE_B && !s->first_field) { ref_picture = s->current_picture_ptr->f->data;
Only MPEG-2 can have field motion vectors with coded fields. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavcodec/mpegvideo_motion.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)