video: overlay-composition: fix crash when doing premultiplied<->unpremultiplied...
authorHolger Kaelberer <hk@getslash.de>
Wed, 14 Mar 2012 17:18:47 +0000 (17:18 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 14 Mar 2012 18:04:38 +0000 (18:04 +0000)
commit7a21d1eb32a02139236378f66e8a245cba5d35e0
treef5094ad1a206c79dea85d9c404501959c80a5608
parent6b7f25a2f07082be5fb95d676bf90fda91511204
video: overlay-composition: fix crash when doing premultiplied<->unpremultiplied alpha conversion

We need to copy the pixels before messing with them, not least
because the buffer creation code below assumes it's ok to take
ownership.

Fixes crash caused by double-free.

https://bugzilla.gnome.org/show_bug.cgi?id=668483
gst-libs/gst/video/video-overlay-composition.c