• Michael Niedermayer's avatar
    j2k/jpeg2000: split data pointer in int & float. · 8bedbb82
    Michael Niedermayer authored
    This fixes a TODO item and unifies both decoders structures
    It also fixes undefined behavior due to aliasing violations
    
    I choose 2 fields instead of a union because mistakely using the
    wrong type with a union will lead to hard to debug "wrong output"
    while with 2 fields mistakely using the wrong type will crash
    with a null pointer derefernce which is much easier to debug
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    8bedbb82
jpeg2000dec.c 48.6 KB