summaryrefslogtreecommitdiff
path: root/examples/decode_gif.c
diff options
context:
space:
mode:
authorSean Fox <dyntryx@gmail.com>2008-06-27 03:23:02 +0000
committerSean Fox <dyntryx@gmail.com>2008-06-27 03:23:02 +0000
commitf93d20f3f5dbb40e706a951d628140baeb4880db (patch)
tree04cbeeccfda21b56c74d05ba042a6c867bbf7c33 /examples/decode_gif.c
parent5d7db2d67b65963955beb05d30184ac28d898ddb (diff)
downloadlibnsgif-f93d20f3f5dbb40e706a951d628140baeb4880db.tar.gz
libnsgif-f93d20f3f5dbb40e706a951d628140baeb4880db.tar.bz2
Type correction; clear gif_animation's memory in gif_create()
svn path=/branches/dynis/libnsgif/; revision=4460
Diffstat (limited to 'examples/decode_gif.c')
-rw-r--r--examples/decode_gif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/decode_gif.c b/examples/decode_gif.c
index 5e136c7..fc508fd 100644
--- a/examples/decode_gif.c
+++ b/examples/decode_gif.c
@@ -83,14 +83,14 @@ int main(int argc, char *argv[])
/* decode the frames */
for (i = 0; i != gif.frame_count; i++) {
unsigned int row, col;
- char *image;
+ unsigned char *image;
code = gif_decode_frame(&gif, i);
if (code != GIF_OK)
warning("gif_decode_frame", code);
printf("# frame %u:\n", i);
- image = (char *) gif.frame_image;
+ image = (unsigned char *) gif.frame_image;
for (row = 0; row != gif.height; row++) {
for (col = 0; col != gif.width; col++) {
size_t z = (row * gif.width + col) * 4;