4xm: replace forcing EMU_EDGE by a copy
authorAnton Khirnov <anton@khirnov.net>
Tue, 17 Dec 2013 07:56:13 +0000 (08:56 +0100)
committerAnton Khirnov <anton@khirnov.net>
Mon, 6 Jan 2014 07:14:14 +0000 (08:14 +0100)
commitfe80fa53bc4977ef6e8e749a9df8ca5590a09307
tree49155b0270191f2e1a87eef6bf3ee0ccbc7ad18d
parentfffca3d278c2a2422c2f61f21c5a9d5f690d328e
4xm: replace forcing EMU_EDGE by a copy

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.
libavcodec/4xm.c