aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vvc
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-01-23 17:24:12 -0300
committerJames Almer <jamrial@gmail.com>2024-01-23 17:24:15 -0300
commit1496ce8f6bae75bd6c00c4d7628a2326b7115df6 (patch)
tree06888c75ce5aa294c6dfefa3b42d8fff49456c50 /libavcodec/vvc
parent67b5012cb127b7eb570525d6314f56db5e6b779f (diff)
downloadffmpeg-1496ce8f6bae75bd6c00c4d7628a2326b7115df6.tar.gz
avcodec/vvc_ctu: align motion vector fields
Should fix "member access within misaligned address 0xf00 for type 'const union av_alias64', which requires 8 byte alignment" errors as reported by GCC ubsan. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/vvc')
-rw-r--r--libavcodec/vvc/vvc_ctu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vvc/vvc_ctu.h b/libavcodec/vvc/vvc_ctu.h
index 5f2ad62676..91b4ed14a1 100644
--- a/libavcodec/vvc/vvc_ctu.h
+++ b/libavcodec/vvc/vvc_ctu.h
@@ -193,7 +193,7 @@ typedef struct Mv {
} Mv;
typedef struct MvField {
- DECLARE_ALIGNED(4, Mv, mv)[2]; ///< mvL0, vvL1
+ DECLARE_ALIGNED(8, Mv, mv)[2]; ///< mvL0, vvL1
int8_t ref_idx[2]; ///< refIdxL0, refIdxL1
uint8_t hpel_if_idx; ///< hpelIfIdx
uint8_t bcw_idx; ///< bcwIdx
@@ -202,7 +202,7 @@ typedef struct MvField {
} MvField;
typedef struct DMVRInfo {
- DECLARE_ALIGNED(4, Mv, mv)[2]; ///< mvL0, vvL1
+ DECLARE_ALIGNED(8, Mv, mv)[2]; ///< mvL0, vvL1
uint8_t dmvr_enabled;
} DMVRInfo;