• Anton Khirnov's avatar
    4xm: replace forcing EMU_EDGE by a copy · fe80fa53
    Anton Khirnov authored
    The decoder currently sets CODEC_FLAG_EMU_EDGE and relies on
    get_buffer2() to always provide buffers with linesize == 2 * width.
    This is wrong, since we place no such restriction on get_buffer2()
    implementations.
    
    Fix this by decoding into internal buffers and copying them to output
    frames. Since this is a very obscure decoder, the performance hit should
    not be an issue.
    fe80fa53
4xm.c 31.7 KB