Skip to content

Commit

Permalink
Merge pull request #1120 from ffontaine/master
Browse files Browse the repository at this point in the history
libheif/plugins/encoder_jpeg.cc: fix libjpeg build
  • Loading branch information
farindk authored Jun 11, 2024
2 parents 15f22bd + 33eb948 commit 4944d7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libheif/plugins/encoder_jpeg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,11 @@ struct heif_error jpeg_encode_image(void* encoder_raw, const struct heif_image*
}

uint8_t* outbuffer = nullptr;
#ifdef LIBJPEG_TURBO_VERSION
unsigned long outlength = 0;
#else
size_t outlength = 0;
#endif

jpeg_create_compress(&cinfo);
jpeg_mem_dest(&cinfo, &outbuffer, &outlength);
Expand Down

0 comments on commit 4944d7d

Please sign in to comment.