[FFmpeg-cvslog] tests/checkasm/diracdsp: fix alignment for src and ombc_weight buffers

James Almer git at videolan.org
Tue Nov 19 17:33:10 EET 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Nov 19 12:32:49 2024 -0300| [9d8f7bf4b836aea86525997953d313b6c96217f3] | committer: James Almer

tests/checkasm/diracdsp: fix alignment for src and ombc_weight buffers

They are supposed to be 16 byte aligned, not 8.
Should fix crashes in some systems.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d8f7bf4b836aea86525997953d313b6c96217f3
---

 tests/checkasm/diracdsp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/checkasm/diracdsp.c b/tests/checkasm/diracdsp.c
index e7dbbe184b..aa09c43ddf 100644
--- a/tests/checkasm/diracdsp.c
+++ b/tests/checkasm/diracdsp.c
@@ -50,10 +50,10 @@
 
 static void check_add_obmc(size_t func_index, int xblen)
 {
-    LOCAL_ALIGNED_8(uint8_t, src, [XBLEN_MAX * YBLEN_MAX]);
+    LOCAL_ALIGNED_16(uint8_t, src, [XBLEN_MAX * YBLEN_MAX]);
     LOCAL_ALIGNED_16(uint16_t, _dst0, [XBLEN_MAX * YBLEN_MAX + 4]);
     LOCAL_ALIGNED_16(uint16_t, _dst1, [XBLEN_MAX * YBLEN_MAX + 4]);
-    LOCAL_ALIGNED_8(uint8_t, obmc_weight, [XBLEN_MAX * YBLEN_MAX]);
+    LOCAL_ALIGNED_16(uint8_t, obmc_weight, [XBLEN_MAX * YBLEN_MAX]);
 
     // Ensure that they accept unaligned buffer.
     // Not using LOCAL_ALIGNED_8 because it might make 16 byte aligned buffer.



More information about the ffmpeg-cvslog mailing list