mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
compositor: fix YUY2/UYVY/VYUY blending
Don't overead memory. Fixup for https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/755 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/823>
This commit is contained in:
parent
6643e941be
commit
0236fa8b9e
1 changed files with 2 additions and 2 deletions
|
@ -969,8 +969,8 @@ blend_##name (GstVideoFrame * srcframe, gint xpos, gint ypos, \
|
||||||
xpos = 0; \
|
xpos = 0; \
|
||||||
} \
|
} \
|
||||||
if (ypos < dst_y_start) { \
|
if (ypos < dst_y_start) { \
|
||||||
src += -ypos * src_stride; \
|
src += (dst_y_start - ypos) * src_stride; \
|
||||||
src_height -= -ypos; \
|
src_height -= dst_y_start - ypos; \
|
||||||
ypos = dst_y_start; \
|
ypos = dst_y_start; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
|
|
Loading…
Reference in a new issue