]> granicus.if.org Git - libjpeg-turbo/commit
The previous attempt to handle unexpected markers in the data stream caused breakage...
authorDRC <dcommander@users.sourceforge.net>
Sat, 16 Apr 2011 18:53:26 +0000 (18:53 +0000)
committerDRC <dcommander@users.sourceforge.net>
Sat, 16 Apr 2011 18:53:26 +0000 (18:53 +0000)
commit051d962318c041a907cf5ce8442d074185de7f73
tree9fd6b9b7236adb44f43b35ee0c16951464578330
parent59f954b3232f1d38e0196269bbdcdcfbc7ef671d
The previous attempt to handle unexpected markers in the data stream caused breakage in applications that attempted to set bytes_in_buffer to a larger value than the actual size of the JPEG image.  The latter behavior was causing the fast decoder to be used for the last MCU in the image under certain circumstances, and this sometimes caused the EOI marker to be encountered by the fast decoder, which was treating it as an "unexpected" marker and throwing an error.  Now, the fast decoder simply hands off the decoding of the block to the slow decoder if any marker is encountered.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@584 632fc199-4ca6-4c93-a231-07263d6284db
jdhuff.c