diff --git a/ChangeLog.md b/ChangeLog.md index fd5e93c2..3d9daae7 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -57,16 +57,16 @@ and AMD CPUs, as well as a measured average overall compression speedup of 0-23% on platforms that do not have a SIMD-accelerated Huffman encoding implementation. -7. The block smoothing algorithm that the libjpeg API library optionally -applies when decompressing multi-scan images is now more fault-tolerant. -Previously, if a particular scan was incomplete, then the smoothing parameters -for the incomplete scan would be applied to the entire output image, including -the parts of the image that were generated by the prior (complete) scan. -Visually, this had the effect of removing block smoothing from lower-frequency -scans if they were followed by an incomplete higher-frequency scan. -libjpeg-turbo now applies block smoothing parameters to each iMCU row based on -which scan generated the pixels in that row, rather than always using the block -smoothing parameters for the most recent scan. +7. When decompressing progressive Huffman-encoded JPEG images, the block +smoothing algorithm that the libjpeg API library optionally applies is now more +fault-tolerant. Previously, if a particular scan was incomplete, then the +smoothing parameters for the incomplete scan would be applied to the entire +output image, including the parts of the image that were generated by the prior +(complete) scan. Visually, this had the effect of removing block smoothing +from lower-frequency scans if they were followed by an incomplete +higher-frequency scan. libjpeg-turbo now applies block smoothing parameters to +each iMCU row based on which scan generated the pixels in that row, rather than +always using the block smoothing parameters for the most recent scan. 2.0.3 diff --git a/jdarith.c b/jdarith.c index 8868d221..6f95cbc4 100644 --- a/jdarith.c +++ b/jdarith.c @@ -731,6 +731,7 @@ bad: entropy->c = 0; entropy->a = 0; entropy->ct = -16; /* force reading 2 initial bytes to fill C */ + entropy->pub.insufficient_data = FALSE; /* Initialize restart counter */ entropy->restarts_to_go = cinfo->restart_interval;