From 764e0219468d008b957fd410c3b208337a9d9056 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 8 Apr 2026 18:20:33 +0200 Subject: [PATCH] avcodec/snowdata: Add explicit alignment for obmc tables This is in preparation for adding SSSE3 assembly. Signed-off-by: Andreas Rheinhardt --- libavcodec/snowdata.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/snowdata.h b/libavcodec/snowdata.h index 87ab354385..fa31ae72c2 100644 --- a/libavcodec/snowdata.h +++ b/libavcodec/snowdata.h @@ -23,8 +23,9 @@ #define AVCODEC_SNOWDATA_H #include "snow.h" +#include "libavutil/mem_internal.h" -static const uint8_t obmc32[1024]={ +DECLARE_ALIGNED(16, static const uint8_t, obmc32)[1024]={ 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 5, 5, 5, 4, 4, 4, 3, 3, 2, 2, 2, 1, 1, 1, 0, 0, 1, 2, 2, 3, 3, 4, 5, 5, 6, 7, 7, 8, 8, 9, 10, 10, 9, 8, 8, 7, 7, 6, 5, 5, 4, 3, 3, 2, 2, 1, 0, @@ -59,7 +60,7 @@ static const uint8_t obmc32[1024]={ 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, //error:0.000020 }; -static const uint8_t obmc16[256]={ +DECLARE_ALIGNED(16, static const uint8_t, obmc16)[256]={ 0, 1, 1, 2, 2, 3, 3, 4, 4, 3, 3, 2, 2, 1, 1, 0, 1, 2, 4, 5, 7, 8, 10, 11, 11, 10, 8, 7, 5, 4, 2, 1, 1, 4, 6, 9, 11, 14, 16, 19, 19, 16, 14, 11, 9, 6, 4, 1,