From 09afdb43ba651e36d974b380d3bad33f0e08e5ad Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 26 Dec 2024 19:14:46 +1100 Subject: [PATCH] Fixed indentation --- src/_avif.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/_avif.c b/src/_avif.c index d86ab340a42..5126c19e567 100644 --- a/src/_avif.c +++ b/src/_avif.c @@ -607,9 +607,9 @@ _encoder_add(AvifEncoderObject *self, PyObject *args) { memcpy(rgb.pixels, rgb_bytes, size); Py_BEGIN_ALLOW_THREADS result = avifImageRGBToYUV(frame, &rgb); - Py_END_ALLOW_THREADS + Py_END_ALLOW_THREADS; - if (result != AVIF_RESULT_OK) { + if (result != AVIF_RESULT_OK) { PyErr_Format( exc_type_for_avif_result(result), "Conversion to YUV failed: %s", @@ -626,9 +626,9 @@ _encoder_add(AvifEncoderObject *self, PyObject *args) { Py_BEGIN_ALLOW_THREADS result = avifEncoderAddImage(encoder, frame, duration, addImageFlags); - Py_END_ALLOW_THREADS + Py_END_ALLOW_THREADS; - if (result != AVIF_RESULT_OK) { + if (result != AVIF_RESULT_OK) { PyErr_Format( exc_type_for_avif_result(result), "Failed to encode image: %s", @@ -661,9 +661,9 @@ _encoder_finish(AvifEncoderObject *self) { PyObject *ret = NULL; Py_BEGIN_ALLOW_THREADS result = avifEncoderFinish(encoder, &raw); - Py_END_ALLOW_THREADS + Py_END_ALLOW_THREADS; - if (result != AVIF_RESULT_OK) { + if (result != AVIF_RESULT_OK) { PyErr_Format( exc_type_for_avif_result(result), "Failed to finish encoding: %s", @@ -877,9 +877,9 @@ _decoder_get_frame(AvifDecoderObject *self, PyObject *args) { } Py_BEGIN_ALLOW_THREADS result = avifImageYUVToRGB(image, &rgb); - Py_END_ALLOW_THREADS + Py_END_ALLOW_THREADS; - if (result != AVIF_RESULT_OK) { + if (result != AVIF_RESULT_OK) { PyErr_Format( exc_type_for_avif_result(result), "Conversion from YUV failed: %s",