We can't enable optimized entropy coding unless we're using Huffman coding.  This fixes a bug whereby attempting to create a progressive JPEG with arithmetic coding would fail.


git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@1036 632fc199-4ca6-4c93-a231-07263d6284db
diff --git a/jcmaster.c b/jcmaster.c
index bee0caf..accfc70 100644
--- a/jcmaster.c
+++ b/jcmaster.c
@@ -602,7 +602,7 @@
     cinfo->num_scans = 1;
   }
 
-  if (cinfo->progressive_mode)	/*  TEMPORARY HACK ??? */
+  if (cinfo->progressive_mode && !cinfo->arith_code)	/*  TEMPORARY HACK ??? */
     cinfo->optimize_coding = TRUE; /* assume default tables no good for progressive mode */
 
   /* Initialize my private state */