From patchwork Wed Apr 3 18:04:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 47763 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:9f96:b0:1a3:b6bb:3029 with SMTP id mm22csp568321pzb; Wed, 3 Apr 2024 11:04:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXo/x/9bsG2Dq54yB7OpBCb22MmXX79zWD+ZzlbS5v/0tmPPSl0ea1an+i/ukL9UJGNYn2xhYz54FvxvnCXVmb0LbWhQZA1OjUSUw== X-Google-Smtp-Source: AGHT+IF5OPqb5S+wEhYFP7/rPEUHb56Ez4506j/xD6MGBnxVd3+59yL2WafZ7zLwngXXVIFG8AC1 X-Received: by 2002:a50:9319:0:b0:568:d7fe:a857 with SMTP id m25-20020a509319000000b00568d7fea857mr127201eda.11.1712167497423; Wed, 03 Apr 2024 11:04:57 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id u27-20020a50c05b000000b0056e0df3e082si363607edd.16.2024.04.03.11.04.57; Wed, 03 Apr 2024 11:04: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=LfWez3IF; 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 6199D68C455; Wed, 3 Apr 2024 21:04:54 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2089.outbound.protection.outlook.com [40.92.90.89]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 667D668C455 for ; Wed, 3 Apr 2024 21:04:48 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HCH5jdZcf8yDeTqgZicz0dTyoCp96WN5xhevmKEgJSvle0ysiHpJ05tHRooFV/SkNpSuC4tMNypB1j1wASJuKMAPt/2dmSPyh5Q29/B4di5iER4iHT5YvOfHklHikvxqKRW969J4UaOmp9RpX/ssunhTLX+KIzN8dBZl9Uk48A8qOPkOaxDsVf9Tb3WygCq5HRxwCMjkEG0hg5wfUj/E/k5OC5if0ITEESsruVayMhJmsPmSAF8Z2PnSuv1x13cEzUO172Df/Zb2rfx3fYPvuPxwMt+9kf+CCcT0U0bkt7PZYYikfTqO5f5mfukm6r42evGsQG8UztasiYcPqh6dUQ== 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=mKiic3HwbXvm2i5fkFe/gwvXih9UUkMGn/TU66VIV5k=; b=Qe+C8LA8Tf9Fjw+LnHCB3Aqh7v88MIHOKR9CdkOxEiJO1wO6fi0oLRKpIKoWKmt6ABRaI2QdakIDo7GLJpxnQqptawIo4Ejkx0WbRlIamQAalfn5E9Gd5c9Kko9mdHcI4lXp7yQKNdkct8xb+f2BwTrSBXa7o0MeoxHGxLy4mqJbCy1b0FOIo7LC3xK/vXzhVnTdyd6P+D25XoxHMDiEBDtTNryfcs2HOO6Pm/qEqkQXnmWehRIP7KEytYE1dovQX9cUnrD4Jr9r4D3Hhjxz3Sv0W0WQGddRgij4fZGcHlSEyZREDMNo9Nf9j+4/t+McYT4gwKzTD8wRJlNVouHlCQ== 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=mKiic3HwbXvm2i5fkFe/gwvXih9UUkMGn/TU66VIV5k=; b=LfWez3IFgvCSczeEHCZDC//ebkPH4PRGtytUPD2AGay98gMPEGuNKWK2HNUleboUSbAZwwBhuw7oochJ1PMR1IjibY0r1jKtVijbiZhHlUKzBvLi7ny6wHkuwc59ZsT+BGx7xVPif3dVg39n5ycETNAa1wETZfHJWOpQdt7BN3lmuONTvLKX1kltc3DN437XRHxTZvbPHAa9H0BmOmCIpz0M55RH+CCpAS2pI2ulXXjDlodXIsBafuxDhrbFJlvmnsolP0/nhtGvkf8q/E3uqHN51teKFz2sdzfQV3HtqF86NeG1PfZyM+CXJjkYa6zdaXTvEzwG3H9h0dGePWv9kw== Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) by DB9P250MB0499.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:33b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 3 Apr 2024 18:04:46 +0000 Received: from GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::4a3b:cf76:cddc:c68d]) by GV1P250MB0737.EURP250.PROD.OUTLOOK.COM ([fe80::4a3b:cf76:cddc:c68d%4]) with mapi id 15.20.7409.042; Wed, 3 Apr 2024 18:04:46 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Wed, 3 Apr 2024 20:04:39 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 X-TMN: [NJFEJWUidJrgNMobst4KR1WioFSr9Vq3nxTqZaYxF3I=] X-ClientProxiedBy: FR0P281CA0261.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b5::15) To GV1P250MB0737.EURP250.PROD.OUTLOOK.COM (2603:10a6:150:8e::17) X-Microsoft-Original-Message-ID: <20240403180439.2615557-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: GV1P250MB0737:EE_|DB9P250MB0499:EE_ X-MS-Office365-Filtering-Correlation-Id: d70d7e2b-cbcc-42af-9cd8-08dc54088bee X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EHjSBDBNdFIe4r8G6H/iRJmHenBQIU+JFfnMsdIXxZRnkbWxjE3Iyhox5HbhUdb5KNVwYPidiZgeybbkSNDarvMsGYkQrvvRH6BBIxxaYcVKaxkn2ZklhpyZ1UKTN1Kqt9eembMGdgCsmwsUDnF1gn9KxrcodXBiaCRsQm9p46RjLxKTJBc9EVCVcZ9DoxQrOtmHMvUf/avQ/IW+7cB4LF4fUadrLDnontsniLV+lR3BFMDqx1NWytLwt4rbjdzZH0bxklPPm6gfm8PX/wLgKiqe1fYBxqx99bcWZ4yiGH8m5SBHbL74bsRCOz7O6vBidKaAW4ql4kNqEGY3kmhKyVI6+qMVc1ourM7frHPfpge9mQOcKQIBV+cp0PKoclpU9tW2LA587ydWQA7fHxRXERhWNSiKuDN+A04fSR8B4W8ibkFIvhIT2Lp1sTth0bysHqOA3E19Yx90eYijfB3SZfyFar/PG9WBcuymZOxY4NzZcIMQw1BeljekHhPEFi9twLz+UtK0eqVx1LKuIY2E2ieSIvlXPpRP6/25/+q/NeGmf8dFQwgrx8HW5WY4bMJi4dE/ub9IOtKilEbNqaY1YkiZV45HcD1kgBHz7M/6N+UuXnk6PLuaLLsBUbBqX4RC X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-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eeJKwXrFd5G1fOq1HcrdUY0uUgaYuO0BrFZHwG5JNgYXNpVK+o4aTDw6dFWguvfFocu5SiVSxs0bE0EG2s7kSBK1AX1ukrsao+8fJu0Yvhwc4OwY2W8wzs7+mz6oLYjjxnw9MbpDgRvBPM8POOdSXIq9OQR3dhge0okZSv7mnYZ7RTkhuljnUiWdpbJuy36ntG8V7omD5QRGRA9xO5KseMXzsPMwqsM43+Pg4JfnuZBTrk06PWRcGLarxa18xgdQmr1ZQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d70d7e2b-cbcc-42af-9cd8-08dc54088bee X-MS-Exchange-CrossTenant-AuthSource: GV1P250MB0737.EURP250.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2024 18:04:46.6316 (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: DB9P250MB0499 Subject: [FFmpeg-devel] [PATCH] avcodec/libdav1d: Don't cast const away unnecessarily X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: kQ5Lmn3jfT/O Possible since c89f6ae6899e0f3ffb4f51da1f1776ab16f5b3a0. Signed-off-by: Andreas Rheinhardt --- libavcodec/libdav1d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c index f022a4ad05..93c77ed9c6 100644 --- a/libavcodec/libdav1d.c +++ b/libavcodec/libdav1d.c @@ -385,7 +385,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame) { Libdav1dContext *dav1d = c->priv_data; Dav1dPicture pic = { 0 }, *p = &pic; - AVPacket *pkt; + const AVPacket *pkt; #if FF_DAV1D_VERSION_AT_LEAST(5,1) enum Dav1dEventFlags event_flags = 0; #endif @@ -439,7 +439,7 @@ static int libdav1d_receive_frame(AVCodecContext *c, AVFrame *frame) INT_MAX); ff_set_sar(c, frame->sample_aspect_ratio); - pkt = (AVPacket *)p->m.user_data.data; + pkt = (const AVPacket *)p->m.user_data.data; // match timestamps and packet size res = ff_decode_frame_props_from_pkt(c, frame, pkt);