Re: [FFmpeg-devel] [PATCH] avutil/mem: limit alignment to maximum simg align

2024-01-13 Thread Timo Rothenpieler
On 13.01.2024 01:57, Timo Rothenpieler wrote: FFmpeg has instances of DECLARE_ALIGNED(32, ...) in a lot of structs, which then end up heap-allocated. By declaring any variable in a struct, or tree of structs, to be 32 byte aligned, it allows the compiler to safely assume the entire struct itself

Re: [FFmpeg-devel] [PATCH] avutil/mem: limit alignment to maximum simg align

2024-01-12 Thread Timo Rothenpieler
On 13.01.2024 01:57, Timo Rothenpieler wrote: FFmpeg has instances of DECLARE_ALIGNED(32, ...) in a lot of structs, which then end up heap-allocated. By declaring any variable in a struct, or tree of structs, to be 32 byte aligned, it allows the compiler to safely assume the entire struct itself

[FFmpeg-devel] [PATCH] avutil/mem: limit alignment to maximum simg align

2024-01-12 Thread Timo Rothenpieler
FFmpeg has instances of DECLARE_ALIGNED(32, ...) in a lot of structs, which then end up heap-allocated. By declaring any variable in a struct, or tree of structs, to be 32 byte aligned, it allows the compiler to safely assume the entire struct itself is also 32 byte aligned. This might make the co