diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2024-11-15 18:56:14 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2024-11-29 12:32:50 +0800 |
commit | fe2c9746dea08236eab2c47fefd47c25693b6c9f (patch) | |
tree | 79d935eb8175efd013eb4303c0b5a9f254ad8a91 | |
parent | 82c208b65326ac9acebdc4e3b488921ac6a117ab (diff) | |
download | ffmpeg-fe2c9746dea08236eab2c47fefd47c25693b6c9f.tar.gz |
avcodec/cavs: Limit align requirement to variable than type
There are another three cavs_vector variables, ff_cavs_dir_mv,
ff_cavs_intra_mv and un_mv. They don't need align to 8.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r-- | libavcodec/cavs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cavs.h b/libavcodec/cavs.h index 244c322b35..d3a88ca403 100644 --- a/libavcodec/cavs.h +++ b/libavcodec/cavs.h @@ -146,7 +146,7 @@ enum cavs_mv_loc { MV_BWD_X3 }; -DECLARE_ALIGNED(8, typedef, struct) { +typedef struct cavs_vector { int16_t x; int16_t y; int16_t dist; @@ -207,7 +207,7 @@ typedef struct AVSContext { D is the macroblock to the top-left (0) the same is repeated for backward motion vectors */ - cavs_vector mv[2*4*3]; + DECLARE_ALIGNED(8, cavs_vector, mv)[2*4*3]; cavs_vector *top_mv[2]; cavs_vector *col_mv; |