xviddec: bodge to avoid crashes
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 11 Jan 2011 10:32:47 +0000 (10:32 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 21 Feb 2011 00:16:33 +0000 (00:16 +0000)
commitc696b54fa72343e5f863a100b09adf54b3b912b4
tree4020e2980461c49aa07364502a1319b6cac5713e
parentf64b66ab23a9ad021b5ba7c3de36391221a769ea
xviddec: bodge to avoid crashes

It seems xvidcore overreads its input buffer, so a nasty workaround
is to allocate some more memory (16 bytes seem to be enough).
There is no apparent image corruption with these extra bytes set to 0,
valgrind is much happier, and the crashes go away.
It is ugly, and slower though. But then, xviddec is currently
not autoplugged for playback anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=334107
ext/xvid/gstxviddec.c