From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 427764BE77 for ; Wed, 3 Dec 2025 12:09:53 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'7xYAkra2zhLGzts2nLcsTQkixcy7IZBUSpgz/ZZWemg=', expected b'J2P66fzWEDx8jq2JJB5aXdtV66d6XWjgfWKwhw3NVsM=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1764763784; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=7xYAkra2zhLGzts2nLcsTQkixcy7IZBUSpgz/ZZWemg=; b=D33e+bCiQUzD0sFvoom7vgIdNE6fc1RI66NZBcKtHP556CWGJZti6ez7KmKxpuwKQHdyl 2fxNbO6MhZENzY7soiyBFLll9ENRW1UEO3Orjj6qmbFtjXOXUlL8oaONSyBsiWsU2mUEkLW cpivE880VaG0097YbTgApVsz/3u9uijQHlp0peNDpiu1+zBm78aAD33HJVnuH256NjkuPXn AoXgcqh1tyn3YQLK8fvK7kukorJvuVwKYK0QEIidwkz9/MaHEbauIwupCO42a+s9rNXvCQi vbim5cOYJFL8rOWX6S5/R4N9BK6xXt2LH9LcRT2MLUwcWXTyaluSecwxIMJA== Received: from [172.19.0.3] (unknown [172.19.0.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id AD77D690465; Wed, 3 Dec 2025 14:09:44 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1764763771; b=Q6+cx6oR+mxUd6BBvoXCX7/N+2G8qVoA3FUdTbFRYD4JYJoD/p5Zo+BqAY2cq2BM4/jjU +rQjbyRQeQZiDCyGb3l4vAVy5UayfayoKaYG/x81WaOdow/YE1kCXzucJPPn3U3wSXEUYKo hhSUsHg0RwQAjtv4n4XBbV5IIdKZvmcsKeyq1p8GlL0baCqO5RX55uxtbmX0+I5En01wAx9 TBVqgdefGCD09Vhj+1pO07O92NBTA4muufTv4f99+jTWiX4OCiM11p3Pe4jHfAStmchGmM6 78NJA8XfL6xvKrgnpSn51QP/wiSfJ2mLBior5TpShhUmiimri9QHrLwtu28g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1764763771; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=u25KJfa2uf4JB/PN6YLDqzsj1Bi3vX19uuEOtTeVnyo=; b=pIlTnz9zzo5YSFGpiaKL+csFJ/HHnqp6vS92QbmM6nwAwhdA1YYJY2wysfSmHyoXUvBOv VVxB2CtC3jwpw3bAzlTGWnOOTuGxMqiP9Vsnwb5+58+XROFnaG7ugiY2n8t8uz2X6DSmWlx 5d+ks8j6dnJ2SY61J+Su5PNw5etJF+V9p2EIDrfFlglRJfUuuIlJYhkPtQUgUDv4NbzArCx CACtYmLAdhXhFzz4DeTlNLJezII+bxRjrN9MlU3Fw8oLq2nsOfCAhmJwTi80IrroWJ67Tdx Gmjh1V2DUdm0F7KTK9V4IArW/+o8YXh/VFkReZ/XLIIjJ+DzjGPugSEDp8yA== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1764763764; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=J2P66fzWEDx8jq2JJB5aXdtV66d6XWjgfWKwhw3NVsM=; b=PfNxydfEPTKzHzKbkHsonMHiMHGv2DPJ8ZrgNmedYO0X1WLT1xXkMezko3ZRYnEx7xsKr yCZoeuRSqBnCgkNYEIbHSW8/kedeD5dII40NkXrOVzXNZhd/7Ad0FWGyYqduebepwcFlqdw 771Kog1rH0SiuxhdfHcDTMImj+IKQ4mO4WcoaRyo6DaCFeoxMOVtlOKCgy9ZY/PV2uWrF/e TtURPcZ/DvAr2yP+b0Ihckpf2whRZHk0tsDoFRb7TP/78hL8Rd5ixxxvUn4gSNq6l1TpsTE kl5RzgxAKvK0MhTOmWHYlVFSuTnUehyQzP0HXIEpnozpuDQY6yKTJ2yj5Eqw== Received: from 55ca25703178 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 94CC268D553 for ; Wed, 3 Dec 2025 14:09:24 +0200 (EET) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Wed, 03 Dec 2025 12:09:24 -0000 Message-ID: <176476376477.39.10288340091978207042@2cb04c0e5124> Message-ID-Hash: QMLCCSMLEWJT6K3WAEZLD6XYIREA3554 X-Message-ID-Hash: QMLCCSMLEWJT6K3WAEZLD6XYIREA3554 X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] tests/checkasm/mpegvideo_unquantize: Add missing const (PR #21087) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: mkver via ffmpeg-devel Cc: mkver Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #21087 opened by mkver URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21087 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21087.patch Fixes this test under UBSan: runtime error: call to function dct_unquantize_mpeg1_intra_c through pointer to incorrect function type 'void (*)(struct MpegEncContext *, short *, int, int)' I don't know how I could forget this. >>From b58979cf09b0e56942ef2e83f0985ddd424d6b25 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 3 Dec 2025 13:05:58 +0100 Subject: [PATCH] tests/checkasm/mpegvideo_unquantize: Add missing const Fixes this test under UBSan: runtime error: call to function dct_unquantize_mpeg1_intra_c through pointer to incorrect function type 'void (*)(struct MpegEncContext *, short *, int, int)' I don't know how I could forget this. Signed-off-by: Andreas Rheinhardt --- tests/checkasm/mpegvideo_unquantize.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/checkasm/mpegvideo_unquantize.c b/tests/checkasm/mpegvideo_unquantize.c index 220a743a96..60c61b217b 100644 --- a/tests/checkasm/mpegvideo_unquantize.c +++ b/tests/checkasm/mpegvideo_unquantize.c @@ -215,11 +215,11 @@ void checkasm_check_mpegvideo_unquantize(void) int q_scale_type = rnd() & 1; ff_mpv_unquantize_init(&unquant_dsp_ctx, 1 /* bitexact */, q_scale_type); - declare_func(void, MPVContext *s, int16_t *block, int n, int qscale); + declare_func(void, const MPVContext *s, int16_t *block, int n, int qscale); for (size_t i = 0; i < FF_ARRAY_ELEMS(tests); ++i) { - void (*func)(MPVContext *s, int16_t *block, int n, int qscale) = - *(void (**)(MPVContext *, int16_t *, int, int))((char*)&unquant_dsp_ctx + tests[i].offset); + void (*func)(const MPVContext *s, int16_t *block, int n, int qscale) = + *(void (**)(const MPVContext *, int16_t *, int, int))((char*)&unquant_dsp_ctx + tests[i].offset); if (check_func(func, "%s", tests[i].name)) { MPVContext new, ref; DECLARE_ALIGNED(16, int16_t, block_new)[64]; -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org