kgv1dec: 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:15:36 +0000 (08:15 +0100)
commitadb199d1bc7f86aa6b85986f40190ec17f99d34f
treee7eab4c250c5e17221378547cb3d26c477bea5a0
parentfe80fa53bc4977ef6e8e749a9df8ca5590a09307
kgv1dec: 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/kgv1dec.c