Ja compila en OSX

This commit is contained in:
2016-02-19 17:49:19 +01:00
parent f9ef26deda
commit 46de4d2c24
2 changed files with 5 additions and 5 deletions

10
gif.c
View File

@@ -85,9 +85,9 @@ typedef struct
} }
plaintext_extension_t; plaintext_extension_t;
static unsigned short width = 0; //static unsigned short width = 0;
static unsigned short height = 0; //static unsigned short height = 0;
static unsigned char* uncompressed_data = NULL; //static unsigned char* uncompressed_data = NULL;
void uncompress( int code_length, void uncompress( int code_length,
const unsigned char *input, const unsigned char *input,
@@ -313,8 +313,8 @@ unsigned char* process_image_descriptor( unsigned char* buffer,
compressed_data_length = read_sub_blocks( buffer, &compressed_data ); compressed_data_length = read_sub_blocks( buffer, &compressed_data );
width = image_descriptor.image_width; // width = image_descriptor.image_width;
height = image_descriptor.image_height; // height = image_descriptor.image_height;
uncompressed_data_length = image_descriptor.image_width * uncompressed_data_length = image_descriptor.image_width *
image_descriptor.image_height; image_descriptor.image_height;
uncompressed_data = (unsigned char*)malloc( uncompressed_data_length ); uncompressed_data = (unsigned char*)malloc( uncompressed_data_length );