From 9d85c2e064c354d01819921f0d553c818eb86b52 Mon Sep 17 00:00:00 2001 From: james Date: Sat, 16 Feb 2019 14:39:33 -0800 Subject: [PATCH] Actually support no apng patch --- src/apng.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apng.c b/src/apng.c index da8140e0..89cd300a 100644 --- a/src/apng.c +++ b/src/apng.c @@ -279,7 +279,11 @@ apng_set_set_acTL_fn (png_structp pngp, apng_infop ainfop, { (void)pngp; if (!ainfop->set_acTL_fn) +#ifndef PNG_WRITE_APNG_SUPPORTED + ainfop->set_acTL_fn = &apng_set_acTL_dummy; +#else ainfop->set_acTL_fn = &png_set_acTL; +#endif/* PNG_WRITE_APNG_SUPPORTED */ else ainfop->set_acTL_fn = set_acTL_f; }