summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormelanson <melanson@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-14 03:26:50 +0000
committermelanson <melanson@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-14 03:26:50 +0000
commitbb5754847e37388f235d93a0f7f72a1476ce8922 (patch)
tree213564fecba4434490c8f4cd03f698736dfa3af5
parentb20dce9ed804ad2de59dc932349d43764402cdab (diff)
downloadmpv-bb5754847e37388f235d93a0f7f72a1476ce8922.tar.bz2
mpv-bb5754847e37388f235d93a0f7f72a1476ce8922.tar.xz
a few quick fixes to the FLI decoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4693 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--fli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fli.c b/fli.c
index 5e7151628e..a5299f6704 100644
--- a/fli.c
+++ b/fli.c
@@ -340,10 +340,10 @@ void decode_fli_frame(
if (update_whole_frame)
{
- pixel_ptr = 0;
+ pixel_ptr = ghost_pixel_ptr = 0;
while (pixel_ptr < (width * height * bytes_per_pixel))
{
- palette_ptr1 = fli_ghost_image[pixel_ptr/bytes_per_pixel];
+ palette_ptr1 = fli_ghost_image[ghost_pixel_ptr++];
decoded[pixel_ptr++] = palette[palette_ptr1 + 0];
decoded[pixel_ptr++] = palette[palette_ptr1 + 1];
decoded[pixel_ptr++] = palette[palette_ptr1 + 2];