summaryrefslogtreecommitdiff
path: root/src/libxinevdec/fli.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxinevdec/fli.c')
-rw-r--r--src/libxinevdec/fli.c27
1 files changed, 10 insertions, 17 deletions
diff --git a/src/libxinevdec/fli.c b/src/libxinevdec/fli.c
index fb2e4446e..9737dbc9c 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.1 2002/07/14 01:31:57 tmmm Exp $
+ * $Id: fli.c,v 1.2 2002/07/15 21:42:34 esnel Exp $
*/
#include <stdio.h>
@@ -531,26 +531,19 @@ static void fli_decode_data (video_decoder_t *this_gen,
img->bad_frame = 0;
decode_fli_frame(this);
- yuv444_to_yuy2(&this->yuv_planes, img->base[0]);
+ yuv444_to_yuy2(&this->yuv_planes, img->base[0], img->pitches[0]);
-/*
if (img->copy) {
+ int height = img->height;
+ uint8_t *src[3];
- int height = abs(this->biHeight);
- int stride = this->biWidth;
- uint8_t* src[3];
-
- src[0] = img->base[0];
- src[1] = img->base[1];
- src[2] = img->base[2];
- while ((height -= 16) >= 0) {
- img->copy(img, src);
- src[0] += 16 * stride;
- src[1] += 4 * stride;
- src[2] += 4 * stride;
- }
+ src[0] = img->base[0];
+
+ while ((height -= 16) >= 0) {
+ img->copy(img, src);
+ src[0] += 16 * img->pitches[0];
+ }
}
-*/
img->draw(img);
img->free(img);