We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67d33a2 commit 7efcefcCopy full SHA for 7efcefc
src/_avif.c
@@ -333,9 +333,9 @@ PyObject *
333
_encoder_add(AvifEncoderObject *self, PyObject *args) {
334
uint8_t *rgb_bytes;
335
Py_ssize_t size;
336
- int duration;
337
- int width;
338
- int height;
+ unsigned int duration;
+ unsigned int width;
+ unsigned int height;
339
char *mode;
340
PyObject *is_single_frame = NULL;
341
PyObject *ret = Py_None;
@@ -351,7 +351,7 @@ _encoder_add(AvifEncoderObject *self, PyObject *args) {
351
352
if (!PyArg_ParseTuple(
353
args,
354
- "z#iiisO",
+ "z#IIIsO",
355
(char **)&rgb_bytes,
356
&size,
357
&duration,
0 commit comments