projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6643e94
)
compositor: fix YUY2/UYVY/VYUY blending
author
Matthew Waters
<matthew@centricular.com>
Mon, 21 Sep 2020 13:50:03 +0000
(23:50 +1000)
committer
Matthew Waters
<matthew@centricular.com>
Mon, 21 Sep 2020 13:51:31 +0000
(23:51 +1000)
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>
gst/compositor/blend.c
patch
|
blob
|
history
diff --git
a/gst/compositor/blend.c
b/gst/compositor/blend.c
index 6eeba1c351123b902879dbbf59553f6384e7a9cb..c2c015006edf2cf7005bebacce08b3fb2d6ec0b4 100644
(file)
--- a/
gst/compositor/blend.c
+++ b/
gst/compositor/blend.c
@@
-969,8
+969,8
@@
blend_##name (GstVideoFrame * srcframe, gint xpos, gint ypos, \
xpos = 0; \
} \
if (ypos < dst_y_start) { \
- src +=
-ypos
* src_stride; \
- src_height -=
-
ypos; \
+ src +=
(dst_y_start - ypos)
* src_stride; \
+ src_height -=
dst_y_start -
ypos; \
ypos = dst_y_start; \
} \
\