From ea02fab31dd66ad0d5d321c65046f0ef9c352848 Mon Sep 17 00:00:00 2001 From: Ewald Snel Date: Wed, 5 Mar 2003 22:12:40 +0000 Subject: Add option to fix alignment problem with some (buggy) XVideo drivers Undo previous change to libreal (bug is general video decoding problem) CVS patchset: 4342 CVS date: 2003/03/05 22:12:40 --- src/libreal/xine_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libreal') diff --git a/src/libreal/xine_decoder.c b/src/libreal/xine_decoder.c index bf4411089..c98906318 100644 --- a/src/libreal/xine_decoder.c +++ b/src/libreal/xine_decoder.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: xine_decoder.c,v 1.29 2003/03/05 20:17:12 tmattern Exp $ + * $Id: xine_decoder.c,v 1.30 2003/03/05 22:12:40 esnel 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 + 7) & (~7); + this->width = (init_data.w + 1) & (~1); this->height = (init_data.h + 1) & (~1); this->stream->stream_info[XINE_STREAM_INFO_VIDEO_WIDTH] = this->width; -- cgit v1.2.3