The branch, master has been updated
via e3e32650348dc7adf71e184f9d2aa4912e62696e (commit)
from b98179cec637e380d755fcfa2a461709278139d2 (commit)
- Log -----------------------------------------------------------------
commit e3e32650348dc7adf71e184f9d2aa4912e62696e
Author: Andreas Rheinhardt <[email protected]>
AuthorDate: Wed Dec 3 13:05:58 2025 +0100
Commit: Andreas Rheinhardt <[email protected]>
CommitDate: Wed Dec 3 14:17:58 2025 +0100
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 <[email protected]>
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];
-----------------------------------------------------------------------
Summary of changes:
tests/checkasm/mpegvideo_unquantize.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]