videomixer: Fix segfault when filling the background of a UYVY frame
https://bugzilla.gnome.org/show_bug.cgi?id=712401
This commit is contained in:
parent
4278ab18ff
commit
b0529e0fe8
@ -892,7 +892,7 @@ fill_checker_##name##_c (GstVideoFrame * frame) \
|
|||||||
width = GST_VIDEO_FRAME_WIDTH (frame); \
|
width = GST_VIDEO_FRAME_WIDTH (frame); \
|
||||||
width = GST_ROUND_UP_2 (width); \
|
width = GST_ROUND_UP_2 (width); \
|
||||||
height = GST_VIDEO_FRAME_HEIGHT (frame); \
|
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; \
|
dest_add = GST_VIDEO_FRAME_COMP_STRIDE (frame, 0) - width * 2; \
|
||||||
width /= 2; \
|
width /= 2; \
|
||||||
\
|
\
|
||||||
@ -922,7 +922,7 @@ fill_color_##name (GstVideoFrame * frame, \
|
|||||||
width = GST_VIDEO_FRAME_WIDTH (frame); \
|
width = GST_VIDEO_FRAME_WIDTH (frame); \
|
||||||
width = GST_ROUND_UP_2 (width); \
|
width = GST_ROUND_UP_2 (width); \
|
||||||
height = GST_VIDEO_FRAME_HEIGHT (frame); \
|
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); \
|
dest_stride = GST_VIDEO_FRAME_COMP_STRIDE (frame, 0); \
|
||||||
width /= 2; \
|
width /= 2; \
|
||||||
\
|
\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user