Commit b0529e0f authored by Sebastian Dröge's avatar Sebastian Dröge

videomixer: Fix segfault when filling the background of a UYVY frame

https://bugzilla.gnome.org/show_bug.cgi?id=712401
parent 4278ab18
......@@ -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; \
\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment