# HG changeset patch # User diego # Date 1168668151 0 # Node ID 82dd482fb3ec5095cee1a3c01ddd618047125458 # Parent d81cf0be50f038462fa78c5e3e5d7990e68e860c cosmetics: typo fix pallete --> palette diff -r d81cf0be50f0 -r 82dd482fb3ec libmpdemux/demux_gif.c --- a/libmpdemux/demux_gif.c Sat Jan 13 06:00:34 2007 +0000 +++ b/libmpdemux/demux_gif.c Sat Jan 13 06:02:31 2007 +0000 @@ -18,7 +18,7 @@ #include static int current_pts = 0; -static unsigned char *pallete = NULL; +static unsigned char *palette = NULL; #define GIF_SIGNATURE (('G' << 16) | ('I' << 8) | 'F') @@ -116,12 +116,12 @@ { int y; - // copy the pallete + // copy the palette for (y = 0; y < 256; y++) { - pallete[(y * 4) + 0] = effective_map->Colors[y].Blue; - pallete[(y * 4) + 1] = effective_map->Colors[y].Green; - pallete[(y * 4) + 2] = effective_map->Colors[y].Red; - pallete[(y * 4) + 3] = 0; + palette[(y * 4) + 0] = effective_map->Colors[y].Blue; + palette[(y * 4) + 1] = effective_map->Colors[y].Green; + palette[(y * 4) + 2] = effective_map->Colors[y].Red; + palette[(y * 4) + 3] = 0; } for (y = 0; y < gif->Image.Height; y++) { @@ -196,7 +196,7 @@ sh_video->bih->biCompression = sh_video->format; sh_video->bih->biBitCount = 8; sh_video->bih->biPlanes = 2; - pallete = (unsigned char *)(sh_video->bih + 1); + palette = (unsigned char *)(sh_video->bih + 1); demuxer->priv = gif;