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
This commit is contained in:
Vincent Penquerc'h 2011-01-11 15:52:03 +00:00 committed by Sebastian Dröge
parent 4ec3189575
commit c3d05d6006

View file

@ -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;