]> 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 17:39:58 +0000 (17:39 +0000)
committerDRC <dcommander@users.sourceforge.net>
Sat, 16 Apr 2011 17:39:58 +0000 (17:39 +0000)
commit5c36465fd581a84f3e1980515964e5d33ab62787
tree0e5053f25ea113821f5965d03e36fd229cb8679b
parent58454c74ccf044c6899700baf231de60b163f4a0
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/branches/1.1.x@582 632fc199-4ca6-4c93-a231-07263d6284db
jdhuff.c