[FFmpeg-devel] [PATCH] lavc/audiodsp: fix aliasing violation

2023-07-14 Thread Rémi Denis-Courmont
Even though they have the same size, and typically the same alignment, uint32_t and float are under no circumstances compatible types in C. The casts from float * to uint32_t * are invalid here. Insofar as the resulting pointers are dereferenced, this is undefined behaviour. This patch uses

Re: [FFmpeg-devel] [PATCH] lavc/audiodsp: fix aliasing violation

2022-09-13 Thread Andreas Rheinhardt
r...@remlab.net: > From: Rémi Denis-Courmont > > Even though they have the same size, and typically the same alignment, > uint32_t and float are under no circumstances compatible types in C. > > The casts from float * to uint32_t * are invalid here. Insofar as the > resulting pointers are

[FFmpeg-devel] [PATCH] lavc/audiodsp: fix aliasing violation

2022-09-13 Thread remi
From: Rémi Denis-Courmont Even though they have the same size, and typically the same alignment, uint32_t and float are under no circumstances compatible types in C. The casts from float * to uint32_t * are invalid here. Insofar as the resulting pointers are dereferenced, this is undefined