summaryrefslogtreecommitdiff
path: root/src/video_out/video_out_xv.c
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2002-07-15 21:42:33 +0000
committerEwald Snel <esnel@users.sourceforge.net>2002-07-15 21:42:33 +0000
commit76e9bd86be57306fbf3bf607d68f9f38c04b4691 (patch)
treed66dc0bb9e7653dce6ed1b38bc3c08841c61e521 /src/video_out/video_out_xv.c
parentfbb014bfa86dd9183d53d9f2e81ac5abfa75246c (diff)
downloadxine-lib-76e9bd86be57306fbf3bf607d68f9f38c04b4691.tar.gz
xine-lib-76e9bd86be57306fbf3bf607d68f9f38c04b4691.tar.bz2
Add 'pitch' support to video decoders (pitch != width)
CVS patchset: 2282 CVS date: 2002/07/15 21:42:33
Diffstat (limited to 'src/video_out/video_out_xv.c')
-rw-r--r--src/video_out/video_out_xv.c5
1 files changed, 4 insertions, 1 deletions
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];