diff options
author | Rémi Denis-Courmont <remi@remlab.net> | 2022-09-13 18:56:27 +0300 |
---|---|---|
committer | Rémi Denis-Courmont <remi@remlab.net> | 2023-07-17 18:48:42 +0300 |
commit | 97c3c9974cc51c6bcf0b4f3ea254cd0be8cfd959 (patch) | |
tree | 60b000bc976bb2f4d61ab20844a9caa796e735bc /CONTRIBUTING.md | |
parent | 51945d5ace5065aaa812486e7d12be1f18344642 (diff) | |
download | ffmpeg-97c3c9974cc51c6bcf0b4f3ea254cd0be8cfd959.tar.gz |
lavc/audiodsp: fix aliasing violation
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 av_float2int() / av_int2float() instead.
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions