mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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; \
|
||||
\
|
||||
|
|
Loading…
Reference in a new issue