Actually support no apng patch

This commit is contained in:
james 2019-02-16 14:39:33 -08:00
parent 7e77e0c429
commit 9d85c2e064

View file

@ -279,7 +279,11 @@ apng_set_set_acTL_fn (png_structp pngp, apng_infop ainfop,
{ {
(void)pngp; (void)pngp;
if (!ainfop->set_acTL_fn) 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; ainfop->set_acTL_fn = &png_set_acTL;
#endif/* PNG_WRITE_APNG_SUPPORTED */
else else
ainfop->set_acTL_fn = set_acTL_f; ainfop->set_acTL_fn = set_acTL_f;
} }