[FIX] Solved bug in gif.c
This commit is contained in:
5
gif.c
5
gif.c
@@ -12,7 +12,9 @@
|
||||
#define COMMENT_EXTENSION 0xFE
|
||||
#define PLAINTEXT_EXTENSION 0x01
|
||||
|
||||
#define READ(dst, size) memcpy(dst, buffer, size); buffer += size
|
||||
unsigned char* bbb;
|
||||
|
||||
#define READ(dst, size) memcpy(dst, bbb, size); bbb += size
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -483,6 +485,7 @@ static unsigned char* process_gif_stream(unsigned char *buffer, unsigned short*
|
||||
|
||||
|
||||
unsigned char* LoadGif(unsigned char *buffer, unsigned short* w, unsigned short* h) {
|
||||
bbb = buffer;
|
||||
return process_gif_stream(buffer, w, h);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user