Add support for PNG with palette

This commit is contained in:
bzt 2021-02-20 16:35:02 +01:00
parent e9dc9867f0
commit 5a93c75d2a

View file

@ -29,7 +29,7 @@ int main(int argc, char **argv)
fseek(f, 0, SEEK_SET);
buff = (unsigned char*)malloc(size);
if(!buff) {
err: fprintf(stderr, "unable to allocate memory\n");
fprintf(stderr, "unable to allocate memory\n");
return 1;
}
fread(buff, size, 1, f);