summaryrefslogtreecommitdiff
path: root/gst/dvdspu
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2011-01-11 15:52:03 +0000
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-01-24 19:47:46 +0100
commitc3d05d6006ed78d0d470ab7bbe9436fd43c60d5e (patch)
treeba951c8032ec83957d296892242977cdc3d01a4b /gst/dvdspu
parent4ec3189575f95b3f85426c77205244d87551d6b8 (diff)
downloadgstreamer-plugins-bad-c3d05d6006ed78d0d470ab7bbe9436fd43c60d5e.tar.gz
dvdspu: don't write clipped lines to the output buffer
We may not increment the output pointer, but it'll still be just off the end of the allocated area. https://bugzilla.gnome.org/show_bug.cgi?id=602847
Diffstat (limited to 'gst/dvdspu')
-rw-r--r--gst/dvdspu/gstspu-vobsub-render.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/dvdspu/gstspu-vobsub-render.c b/gst/dvdspu/gstspu-vobsub-render.c
index 30de0eb80..06054085d 100644
--- a/gst/dvdspu/gstspu-vobsub-render.c
+++ b/gst/dvdspu/gstspu-vobsub-render.c
@@ -515,10 +515,11 @@ gstspu_vobsub_render (GstDVDSpu * dvdspu, GstBuffer * buf)
/* Render odd line */
state->vobsub.comp_last_x_ptr = state->vobsub.comp_last_x + 1;
gstspu_vobsub_render_line (state, planes, &state->vobsub.cur_offsets[1]);
- /* Blend the accumulated UV compositing buffers onto the output */
- gstspu_vobsub_blend_comp_buffers (state, planes);
if (!clip) {
+ /* Blend the accumulated UV compositing buffers onto the output */
+ gstspu_vobsub_blend_comp_buffers (state, planes);
+
/* Update all the output pointers */
planes[0] += state->Y_stride;
planes[1] += state->UV_stride;