From 3ab817f4c29dc5f2126e3a2e9b6525683f037693 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Wed, 5 Mar 2003 20:17:12 +0000 Subject: Align the width to 8. I don't know if I have the only one Xv driver with this limitation. Is there an other way to fix this ? CVS patchset: 4341 CVS date: 2003/03/05 20:17:12 --- src/libreal/xine_decoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/libreal/xine_decoder.c b/src/libreal/xine_decoder.c index ada227c14..bf4411089 100644 --- a/src/libreal/xine_decoder.c +++ b/src/libreal/xine_decoder.c @@ -1,4 +1,4 @@ -/* +/* * Copyright (C) 2000-2002 the xine project * * This file is part of xine, a free video player. @@ -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: xine_decoder.c,v 1.28 2003/02/14 22:28:46 f1rmb Exp $ + * $Id: xine_decoder.c,v 1.29 2003/03/05 20:17:12 tmattern Exp $ * * thin layer to use real binary-only codecs in xine * @@ -208,7 +208,7 @@ static int init_codec (realdec_decoder_t *this, buf_element_t *buf) { init_data.w = BE_16(&buf->content[12]); init_data.h = BE_16(&buf->content[14]); - this->width = (init_data.w + 1) & (~1); + this->width = (init_data.w + 7) & (~7); this->height = (init_data.h + 1) & (~1); this->stream->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = this->width; -- cgit v1.2.3