From 9b73069832b221c5136f8c773a04a4d3b1668f79 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Sun, 22 Dec 2002 23:15:17 +0000 Subject: be strict with the width CVS patchset: 3636 CVS date: 2002/12/22 23:15:17 --- src/libxinevdec/fli.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libxinevdec/fli.c b/src/libxinevdec/fli.c index 58ff3685d..32148eba0 100644 --- a/src/libxinevdec/fli.c +++ b/src/libxinevdec/fli.c @@ -23,7 +23,7 @@ * avoid when implementing a FLI decoder, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: fli.c,v 1.13 2002/12/22 20:36:24 tmmm Exp $ + * $Id: fli.c,v 1.14 2002/12/22 23:15:17 tmmm Exp $ */ #include @@ -423,7 +423,8 @@ static void fli_decode_data (video_decoder_t *this_gen, if(this->buf) free(this->buf); - this->width = LE_16(&buf->content[8]); + /* RGB -> YUV converter requires even width */ + this->width = (LE_16(&buf->content[8]) + 1) & ~0x1; this->height = LE_16(&buf->content[10]); this->video_step = buf->decoder_info[1]; -- cgit v1.2.3