[FIX] Solved bug in gif.c

This commit is contained in:
2021-05-12 18:06:11 +02:00
parent 2b448c3bda
commit 7f60bf88f2

5
gif.c
View File

@@ -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);
}