Skip to content

Commit

Permalink
Fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 26, 2024
1 parent 3a9a3ab commit 09afdb4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/_avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 09afdb4

Please sign in to comment.