This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 764e0219468d008b957fd410c3b208337a9d9056
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Wed Apr 8 18:20:33 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Mon Apr 13 12:46:24 2026 +0200

    avcodec/snowdata: Add explicit alignment for obmc tables
    
    This is in preparation for adding SSSE3 assembly.
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 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,

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to