Skip to content

Commit

Permalink
Merge pull request #1454 from jerstlouis/master
Browse files Browse the repository at this point in the history
encoder_jpeg.cc: Fix for libjpeg versions < 9d
  • Loading branch information
farindk authored Jan 31, 2025
2 parents 05f478a + d201370 commit 8899cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/plugins/encoder_jpeg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ struct heif_error jpeg_encode_image(void* encoder_raw, const struct heif_image*
}

uint8_t* outbuffer = nullptr;
#ifdef LIBJPEG_TURBO_VERSION
#if defined(LIBJPEG_TURBO_VERSION) || (JPEG_LIB_VERSION_MAJOR < 9 || (JPEG_LIB_VERSION_MAJOR == 9 && JPEG_LIB_VERSION_MINOR < 4))
unsigned long outlength = 0;
#else
size_t outlength = 0;
Expand Down

0 comments on commit 8899cba

Please sign in to comment.