Skip to content

Commit

Permalink
encoder_jpeg.cc: Fix for libjpeg versions < 9d
Browse files Browse the repository at this point in the history
- Fixes #1453
  • Loading branch information
jerstlouis committed Jan 31, 2025
1 parent 05f478a commit d201370
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 d201370

Please sign in to comment.