[FFmpeg-devel] [PATCH 08/10] tests/checkasm/vf_bwdif: Use correct function pointer type

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Mon May 13 12:30:57 EEST 2024


Forgotten in fa06f48371ba2b73c139810db5bb893dc27eda7a.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 tests/checkasm/vf_bwdif.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/checkasm/vf_bwdif.c b/tests/checkasm/vf_bwdif.c
index fae61b62e4..222e6aa4fa 100644
--- a/tests/checkasm/vf_bwdif.c
+++ b/tests/checkasm/vf_bwdif.c
@@ -40,7 +40,7 @@
         const int stride = WIDTH;                                              \
         const int mask = (1<<depth)-1;                                         \
                                                                                \
-        declare_func(void, void *dst, void *prev, void *cur, void *next,       \
+        declare_func(void, void *dst, const void *prev, const void *cur, const void *next, \
                         int w, int prefs, int mrefs, int prefs2, int mrefs2,   \
                         int prefs3, int mrefs3, int prefs4, int mrefs4,        \
                         int parity, int clip_max);                             \
@@ -181,7 +181,7 @@ void checkasm_check_vf_bwdif(void)
             for (parity = 0; parity != 2; ++parity) {
                 if (check_func(ctx_8.filter_edge, "bwdif8.edge.s%d.p%d", spat, parity)) {
 
-                    declare_func(void, void *dst1, void *prev1, void *cur1, void *next1,
+                    declare_func(void, void *dst1, const void *prev1, const void *cur1, const void *next1,
                                             int w, int prefs, int mrefs, int prefs2, int mrefs2,
                                             int parity, int clip_max, int spat);
 
@@ -225,7 +225,7 @@ void checkasm_check_vf_bwdif(void)
         const int stride = WIDTH;
         const int mask = (1<<8)-1;
 
-        declare_func(void, void *dst1, void *cur1, int w, int prefs, int mrefs,
+        declare_func(void, void *dst1, const void *cur1, int w, int prefs, int mrefs,
                      int prefs3, int mrefs3, int parity, int clip_max);
 
         randomize_buffers( cur0,  cur1, mask, 11*WIDTH);
-- 
2.40.1



More information about the ffmpeg-devel mailing list