Lines 33-39
gboolean readpng_init(FILE *infile, png_
Link Here
|
33 |
png_uint_32 width, height; |
33 |
png_uint_32 width, height; |
34 |
|
34 |
|
35 |
fread(sig, 1, 8, infile); |
35 |
fread(sig, 1, 8, infile); |
36 |
if (!png_check_sig(sig, 8)) |
36 |
if (png_sig_cmp(sig, 0, 8)) |
37 |
return FALSE; |
37 |
return FALSE; |
38 |
|
38 |
|
39 |
*png_struct = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); |
39 |
*png_struct = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); |