We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Builds using jpeg-9a,b,c are failing due to type mismatch invoking jpeg_mem_dest().
jpeg_mem_dest()
Like libjpeg-turbo, the prototypes in non-turbo libjpeg up to jpeg-9c used unsigned long (while LIBJPEG_TURBO_VERSION is not defined):
unsigned long
LIBJPEG_TURBO_VERSION
EXTERN(void) jpeg_mem_dest JPP((j_compress_ptr cinfo, unsigned char ** outbuffer, unsigned long * outsize));
The code in encoder_jpeg.cc declares the output size as:
#ifdef LIBJPEG_TURBO_VERSION unsigned long outlength = 0; #else size_t outlength = 0; #endif
so this should probably be something like:
#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; #endif
The text was updated successfully, but these errors were encountered:
d201370
Successfully merging a pull request may close this issue.
Builds using jpeg-9a,b,c are failing due to type mismatch invoking
jpeg_mem_dest()
.Like libjpeg-turbo, the prototypes in non-turbo libjpeg up to jpeg-9c used
unsigned long
(whileLIBJPEG_TURBO_VERSION
is not defined):The code in encoder_jpeg.cc declares the output size as:
so this should probably be something like:
The text was updated successfully, but these errors were encountered: