mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 13:48:21 +01:00
Merge "cosmetics: dwebp: fix local function name format"
This commit is contained in:
commit
ad9dec0c24
@ -186,7 +186,7 @@ static int WritePNG(const char* out_file_name, int use_stdout,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(WEBP_HAVE_PNG) // !HAVE_WINCODEC_H
|
#elif defined(WEBP_HAVE_PNG) // !HAVE_WINCODEC_H
|
||||||
static void PNGAPI error_function(png_structp png, png_const_charp dummy) {
|
static void PNGAPI PNGErrorFunction(png_structp png, png_const_charp dummy) {
|
||||||
(void)dummy; // remove variable-unused warning
|
(void)dummy; // remove variable-unused warning
|
||||||
longjmp(png_jmpbuf(png), 1);
|
longjmp(png_jmpbuf(png), 1);
|
||||||
}
|
}
|
||||||
@ -202,7 +202,7 @@ static int WritePNG(FILE* out_file, const WebPDecBuffer* const buffer) {
|
|||||||
png_uint_32 y;
|
png_uint_32 y;
|
||||||
|
|
||||||
png = png_create_write_struct(PNG_LIBPNG_VER_STRING,
|
png = png_create_write_struct(PNG_LIBPNG_VER_STRING,
|
||||||
NULL, error_function, NULL);
|
NULL, PNGErrorFunction, NULL);
|
||||||
if (png == NULL) {
|
if (png == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user