diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2011-01-11 15:52:03 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-01-24 19:47:46 +0100 |
commit | c3d05d6006ed78d0d470ab7bbe9436fd43c60d5e (patch) | |
tree | ba951c8032ec83957d296892242977cdc3d01a4b /gst/dvdspu | |
parent | 4ec3189575f95b3f85426c77205244d87551d6b8 (diff) |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/dvdspu/gstspu-vobsub-render.c b/gst/dvdspu/gstspu-vobsub-render.c index 30de0eb801..06054085d1 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; |