gstreamer/gst/vaapi
Holger Kaelberer 9bf1ae04cc vaapiupload: fix illegal write in ensure_image().
Fix ensure_image() to only zero-initialize the first line of each plane.
Properly initializing each plane to their full vertical resolution would
require to actually compute it based on the image format.

In particular, for NV12 images, the UV plane has half vertical resolution
vs. the Y plane. So using the full image height to initialize the UV plane
will obviously lead to a buffer overflow. Likewise for other YUV format.

Since ensure_image() is only a helper function to initialize something,
and not necessarily the whole thing, it is fine to initializ the first
line only. Besides, the target surface is not rendered either.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
2013-02-26 11:27:07 +01:00
..
gstvaapi.c libs: fix compatibility with glib 2.28. 2012-12-17 14:33:52 +01:00
gstvaapidecode.c vaapidecode: handle decode-only frames. 2013-01-30 16:38:48 +01:00
gstvaapidecode.h legal: fix year for some copyright notices (2012). 2013-01-29 14:37:02 +01:00
gstvaapidownload.c legal: fix year for some copyright notices (2013). 2013-01-29 14:37:02 +01:00
gstvaapidownload.h plugins: declare _get_type() functions as const. 2012-07-19 15:19:17 +02:00
gstvaapipluginbuffer.c legal: fix year for some copyright notices (2013). 2013-01-29 14:37:02 +01:00
gstvaapipluginbuffer.h legal: fix year for some copyright notices (2013). 2013-01-29 14:37:02 +01:00
gstvaapipluginutil.c plugins: add support for headless pipelines. 2012-08-01 16:40:17 +02:00
gstvaapipluginutil.h pluginutils: add G_PRIMITIVE_SWAP() helper macro. 2012-09-06 13:39:50 +02:00
gstvaapipostproc.c legal: fix year for some copyright notices (2013). 2013-01-29 14:37:02 +01:00
gstvaapipostproc.h Do not forward declare enums. 2012-09-07 11:54:09 +02:00
gstvaapisink.c legal: fix year for some copyright notices (2013). 2013-01-29 14:37:02 +01:00
gstvaapisink.h legal: fix year for some copyright notices (2012). 2013-01-29 14:37:02 +01:00
gstvaapiupload.c legal: fix year for some copyright notices (2013). 2013-01-29 14:37:02 +01:00
gstvaapiupload.h vaapiupload: use new GstVaapiUploader helper. 2012-11-20 16:04:51 +01:00
gstvaapiuploader.c vaapiupload: fix illegal write in ensure_image(). 2013-02-26 11:27:07 +01:00
gstvaapiuploader.h vaapisink: compute and expose the supported set of YUV caps. 2012-11-20 16:04:51 +01:00
Makefile.am Add videoutils submodule for GstVideoDecoder APIs. 2012-12-21 16:01:16 +01:00