diff mbox series

[FFmpeg-devel,2/4] lavc/h264_loopfilter: align TC and bS tables

Message ID 20240701170807.107018-2-remi@remlab.net
State New
Headers show
Series [FFmpeg-devel,RFC,1/4] lavc/h264_loopfilter: expose tc0_table (for checkasm) | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Rémi Denis-Courmont July 1, 2024, 5:08 p.m. UTC
---
 libavcodec/h264_loopfilter.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/h264_loopfilter.c b/libavcodec/h264_loopfilter.c
index 9481882dd0..96f572c1d2 100644
--- a/libavcodec/h264_loopfilter.c
+++ b/libavcodec/h264_loopfilter.c
@@ -66,7 +66,7 @@  static const uint8_t beta_table[52*3] = {
     18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
     18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
 };
-const int8_t ff_h264_tc0_table[52*3][4] = {
+const DECLARE_ALIGNED_4(int8_t, ff_h264_tc0_table)[52*3][4] = {
     {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 },
     {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 },
     {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 }, {-1, 0, 0, 0 },
@@ -266,8 +266,8 @@  static av_always_inline void h264_filter_mb_fast_internal(const H264Context *h,
     qpc1 = (qpc + qpc1 + 1) >> 1;
 
     if( IS_INTRA(mb_type) ) {
-        static const int16_t bS4[4] = {4,4,4,4};
-        static const int16_t bS3[4] = {3,3,3,3};
+        static const DECLARE_ALIGNED_8(int16_t, bS4)[4] = {4,4,4,4};
+        static const DECLARE_ALIGNED_8(int16_t, bS3)[4] = {3,3,3,3};
         const int16_t *bSH = FIELD_PICTURE(h) ? bS3 : bS4;
         if(left_type)
             filter_mb_edgev( &img_y[4*0<<pixel_shift], linesize, bS4, qp0, a, b, h, 1);