• Rémi Denis-Courmont's avatar
    lavc/audiodsp: fix aliasing violation · 97c3c997
    Rémi Denis-Courmont authored
    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.
    97c3c997
audiodsp.c 3.88 KB