From 76e9bd86be57306fbf3bf607d68f9f38c04b4691 Mon Sep 17 00:00:00 2001 From: Ewald Snel Date: Mon, 15 Jul 2002 21:42:33 +0000 Subject: Add 'pitch' support to video decoders (pitch != width) CVS patchset: 2282 CVS date: 2002/07/15 21:42:33 --- src/video_out/video_out_xv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/video_out/video_out_xv.c') diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index ad685093f..c6a4e3a82 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: video_out_xv.c,v 1.122 2002/07/10 14:04:42 mroi Exp $ + * $Id: video_out_xv.c,v 1.123 2002/07/15 21:42:34 esnel Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -463,6 +463,9 @@ static void xv_update_frame_format (vo_driver_t *this_gen, frame->image = create_ximage (this, &frame->shminfo, width, height, format); + frame->vo_frame.pitches[0] = frame->image->pitches[0]; + frame->vo_frame.pitches[1] = frame->image->pitches[2]; + frame->vo_frame.pitches[2] = frame->image->pitches[1]; frame->vo_frame.base[0] = frame->image->data + frame->image->offsets[0]; frame->vo_frame.base[1] = frame->image->data + frame->image->offsets[2]; frame->vo_frame.base[2] = frame->image->data + frame->image->offsets[1]; -- cgit v1.2.3