Ensure that image_width and image_height are initialized if libjpeg v8 emulation is enabled.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@564 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2011-04-02 05:37:49 +00:00
2 changed files with 10 additions and 0 deletions

View File

@@ -27,6 +27,11 @@ transposed or rotated 90 degrees.
[8] Fixed a regression bug in the NSIS script that caused the Windows installer
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
=====

View File

@@ -99,6 +99,11 @@ transdecode_master_selection (j_decompress_ptr cinfo)
/* This is effectively a buffered-image operation. */
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. */
if (cinfo->arith_code) {
#ifdef D_ARITH_CODING_SUPPORTED