Ensure that image_width and image_height are initialized if libjpeg v8 emulation is enabled.
This commit is contained in:
@@ -27,6 +27,11 @@ transposed or rotated 90 degrees.
|
|||||||
[8] Fixed a regression bug in the NSIS script that caused the Windows installer
|
[8] Fixed a regression bug in the NSIS script that caused the Windows installer
|
||||||
build to fail when using the Visual Studio IDE.
|
build to fail when using the Visual Studio IDE.
|
||||||
|
|
||||||
|
[9] Fixed a bug in jpeg_read_coefficients() whereby it would not initialize
|
||||||
|
cinfo->image_width and cinfo->image_height if libjpeg v8 emulation was enabled.
|
||||||
|
This specifically caused the jpegoptim program to fail if it was linked against
|
||||||
|
a version of libjpeg-turbo that was built with libjpeg v8 emulation.
|
||||||
|
|
||||||
|
|
||||||
1.1.1
|
1.1.1
|
||||||
=====
|
=====
|
||||||
|
|||||||
@@ -99,6 +99,11 @@ transdecode_master_selection (j_decompress_ptr cinfo)
|
|||||||
/* This is effectively a buffered-image operation. */
|
/* This is effectively a buffered-image operation. */
|
||||||
cinfo->buffered_image = TRUE;
|
cinfo->buffered_image = TRUE;
|
||||||
|
|
||||||
|
#if JPEG_LIB_VERSION >= 80
|
||||||
|
/* Compute output image dimensions and related values. */
|
||||||
|
jpeg_core_output_dimensions(cinfo);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Entropy decoding: either Huffman or arithmetic coding. */
|
/* Entropy decoding: either Huffman or arithmetic coding. */
|
||||||
if (cinfo->arith_code) {
|
if (cinfo->arith_code) {
|
||||||
#ifdef D_ARITH_CODING_SUPPORTED
|
#ifdef D_ARITH_CODING_SUPPORTED
|
||||||
|
|||||||
Reference in New Issue
Block a user