diff options
author | melanson <melanson@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-14 03:26:50 +0000 |
---|---|---|
committer | melanson <melanson@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-02-14 03:26:50 +0000 |
commit | bb5754847e37388f235d93a0f7f72a1476ce8922 (patch) | |
tree | 213564fecba4434490c8f4cd03f698736dfa3af5 | |
parent | b20dce9ed804ad2de59dc932349d43764402cdab (diff) | |
download | mpv-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]; |