diff options
author | Mike Melanson <mike@multimedia.cx> | 2002-12-22 23:15:17 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2002-12-22 23:15:17 +0000 |
commit | 9b73069832b221c5136f8c773a04a4d3b1668f79 (patch) | |
tree | d3eb3c39b8ad857a95d8e4c32513d8ffce5993a2 | |
parent | e295ecb14bc3058afc60e4453eeb77dc40e3c3c0 (diff) | |
download | xine-lib-9b73069832b221c5136f8c773a04a4d3b1668f79.tar.gz xine-lib-9b73069832b221c5136f8c773a04a4d3b1668f79.tar.bz2 |
be strict with the width
CVS patchset: 3636
CVS date: 2002/12/22 23:15:17
-rw-r--r-- | src/libxinevdec/fli.c | 5 |
1 files 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 <stdio.h> @@ -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]; |