From b0529e0fe8b99e63145c1f1237ca13d9e4503767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 29 Nov 2013 19:50:24 +0100 Subject: [PATCH] videomixer: Fix segfault when filling the background of a UYVY frame https://bugzilla.gnome.org/show_bug.cgi?id=712401 --- gst/videomixer/blend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/videomixer/blend.c b/gst/videomixer/blend.c index 894ea21013..9aaeac8ce8 100644 --- a/gst/videomixer/blend.c +++ b/gst/videomixer/blend.c @@ -892,7 +892,7 @@ fill_checker_##name##_c (GstVideoFrame * frame) \ width = GST_VIDEO_FRAME_WIDTH (frame); \ width = GST_ROUND_UP_2 (width); \ height = GST_VIDEO_FRAME_HEIGHT (frame); \ - dest = GST_VIDEO_FRAME_COMP_DATA (frame, 0); \ + dest = GST_VIDEO_FRAME_PLANE_DATA (frame, 0); \ dest_add = GST_VIDEO_FRAME_COMP_STRIDE (frame, 0) - width * 2; \ width /= 2; \ \ @@ -922,7 +922,7 @@ fill_color_##name (GstVideoFrame * frame, \ width = GST_VIDEO_FRAME_WIDTH (frame); \ width = GST_ROUND_UP_2 (width); \ height = GST_VIDEO_FRAME_HEIGHT (frame); \ - dest = GST_VIDEO_FRAME_COMP_DATA (frame, 0); \ + dest = GST_VIDEO_FRAME_PLANE_DATA (frame, 0); \ dest_stride = GST_VIDEO_FRAME_COMP_STRIDE (frame, 0); \ width /= 2; \ \