From 963f7bf194fc8600903313e7c8e3a7b84ea626d3 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Mon, 16 Oct 2023 11:16:47 +0200 Subject: [PATCH] jpegdec: cast to libjpeg type (#948) --- libheif/plugins/decoder_jpeg.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libheif/plugins/decoder_jpeg.cc b/libheif/plugins/decoder_jpeg.cc index 3ac917c743..49a95a17e8 100644 --- a/libheif/plugins/decoder_jpeg.cc +++ b/libheif/plugins/decoder_jpeg.cc @@ -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(decoder->data.size())); /* Adding this part to prepare for icc profile reading. */ // jpeg_save_markers(&cinfo, JPEG_ICC_MARKER, 0xFFFF);