mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
a few quick fixes to the FLI decoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4693 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b20dce9ed8
commit
bb5754847e
4
fli.c
4
fli.c
@ -340,10 +340,10 @@ void decode_fli_frame(
|
|||||||
|
|
||||||
if (update_whole_frame)
|
if (update_whole_frame)
|
||||||
{
|
{
|
||||||
pixel_ptr = 0;
|
pixel_ptr = ghost_pixel_ptr = 0;
|
||||||
while (pixel_ptr < (width * height * bytes_per_pixel))
|
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 + 0];
|
||||||
decoded[pixel_ptr++] = palette[palette_ptr1 + 1];
|
decoded[pixel_ptr++] = palette[palette_ptr1 + 1];
|
||||||
decoded[pixel_ptr++] = palette[palette_ptr1 + 2];
|
decoded[pixel_ptr++] = palette[palette_ptr1 + 2];
|
||||||
|
Loading…
Reference in New Issue
Block a user