From 61ce5c2a4caa0769809ad27f47d5a9e79b99fff0 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 10 May 2025 17:46:59 +1000 Subject: [PATCH] is_animated should be a bool --- src/_jpegxl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_jpegxl.c b/src/_jpegxl.c index 6d8dcb928..5672ce026 100644 --- a/src/_jpegxl.c +++ b/src/_jpegxl.c @@ -410,11 +410,11 @@ _jxl_decoder_get_info(PyObject *self) { JpegXlDecoderObject *decp = (JpegXlDecoderObject *)self; return Py_BuildValue( - "(II)siIIII", + "(II)sOIIII", decp->basic_info.xsize, decp->basic_info.ysize, decp->mode, - decp->basic_info.have_animation, + decp->basic_info.have_animation ? Py_True : Py_False, decp->basic_info.animation.tps_numerator, decp->basic_info.animation.tps_denominator, decp->basic_info.animation.num_loops,