summaryrefslogtreecommitdiff
path: root/src/libreal/xine_decoder.c
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2003-03-05 20:17:12 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2003-03-05 20:17:12 +0000
commit3ab817f4c29dc5f2126e3a2e9b6525683f037693 (patch)
tree41ef690e4494fd7ae426fd0a48ee1374a8aadcce /src/libreal/xine_decoder.c
parent31e0c25d1d246d0d26492f1455c427375d8ee8a2 (diff)
downloadxine-lib-3ab817f4c29dc5f2126e3a2e9b6525683f037693.tar.gz
xine-lib-3ab817f4c29dc5f2126e3a2e9b6525683f037693.tar.bz2
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
Diffstat (limited to 'src/libreal/xine_decoder.c')
-rw-r--r--src/libreal/xine_decoder.c6
1 files changed, 3 insertions, 3 deletions
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;