video-blend: fix allocation of temp src line for wide sources

Fix allocation of temporary source line buffers for source
images that are wider than the video overlay surface.
This commit is contained in:
Tim-Philipp Müller 2014-11-16 16:31:45 +00:00
parent 07f254e4b2
commit 2fae23c318

View file

@ -316,7 +316,7 @@ gst_video_blend (GstVideoFrame * dest,
goto unpack_format_not_supported;
tmpdestline = g_malloc (sizeof (guint8) * (dest_width + 8) * 4);
tmpsrcline = g_malloc (sizeof (guint8) * (dest_width + 8) * 4);
tmpsrcline = g_malloc (sizeof (guint8) * (src_width + 8) * 4);
matrix = matrix_identity;
if (GST_VIDEO_INFO_IS_RGB (&src->info) != GST_VIDEO_INFO_IS_RGB (&dest->info)) {