Corrected syntax

This commit is contained in:
Andrew Murray 2024-02-08 12:29:06 +11:00 committed by GitHub
parent c93b23239d
commit cb39b1c89e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -455,7 +455,7 @@ _anim_decoder_get_next(PyObject *self) {
WebPAnimDecoderObject *decp = (WebPAnimDecoderObject *)self; WebPAnimDecoderObject *decp = (WebPAnimDecoderObject *)self;
ImagingSectionEnter(&cookie); ImagingSectionEnter(&cookie);
ok = WebPAnimDecoderGetNext(decp->dec, &buf, &timestamp) ok = WebPAnimDecoderGetNext(decp->dec, &buf, &timestamp);
ImagingSectionLeave(&cookie); ImagingSectionLeave(&cookie);
if (!ok) { if (!ok) {
PyErr_SetString(PyExc_OSError, "failed to read next frame"); PyErr_SetString(PyExc_OSError, "failed to read next frame");