Skip to content

Commit

Permalink
jpegdec: cast to libjpeg type (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
farindk committed Oct 16, 2023
1 parent e1e3811 commit 963f7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/plugins/decoder_jpeg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ struct heif_error jpeg_decode_image(void* decoder_raw, struct heif_image** out_i
jpeg_create_decompress(&cinfo);

cinfo.err = jpeg_std_error(&jerr);
jpeg_mem_src(&cinfo, decoder->data.data(), decoder->data.size());
jpeg_mem_src(&cinfo, decoder->data.data(), static_cast<unsigned long>(decoder->data.size()));

/* Adding this part to prepare for icc profile reading. */
// jpeg_save_markers(&cinfo, JPEG_ICC_MARKER, 0xFFFF);
Expand Down

0 comments on commit 963f7bf

Please sign in to comment.