Subtle point, but dest->outbuffer is a pointer to the address of the JPEG buffer...
authorDRC <dcommander@users.sourceforge.net>
Thu, 21 Aug 2014 22:15:19 +0000 (22:15 +0000)
committerDRC <dcommander@users.sourceforge.net>
Thu, 21 Aug 2014 22:15:19 +0000 (22:15 +0000)
commitcce13c767e93eaed019a8d443dea21835499efcc
tree52401af11df89e493e53a67bac5214a0ecb6e2bb
parentfe80ec22752cce224c55d7b429d46503634ef034
Subtle point, but dest->outbuffer is a pointer to the address of the JPEG buffer, which is stored in the calling program.  Thus, *(dest->outbuffer) will always equal *outbuffer.  We need to compare *outbuffer with dest->buffer instead to determine if the pointer is being reused.

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