Skip to content

Commit

Permalink
Removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Nov 24, 2024
1 parent 7d59133 commit 04020ee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/_avif.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ _encoder_add(AvifEncoderObject *self, PyObject *args) {
PyObject *ret = Py_None;

int is_first_frame;
int channels;
avifRGBImage rgb;
avifResult result;

Expand Down Expand Up @@ -446,10 +445,8 @@ _encoder_add(AvifEncoderObject *self, PyObject *args) {

if (strcmp(mode, "RGBA") == 0) {
rgb.format = AVIF_RGB_FORMAT_RGBA;
channels = 4;
} else {
rgb.format = AVIF_RGB_FORMAT_RGB;
channels = 3;
}

avifRGBImageAllocatePixels(&rgb);
Expand Down

0 comments on commit 04020ee

Please sign in to comment.