summaryrefslogtreecommitdiff
path: root/jcmaster.c
diff options
context:
space:
mode:
authorGuido Vollbeding <guido@jpegclub.org>1998-03-28 00:00:00 +0000
committerDRC <information@libjpeg-turbo.org>2015-07-27 14:40:46 -0500
commit1e247ac854f8e33682bcfea475f6bccc42377208 (patch)
treefabc3ff2ae389709298738bb287f8b9ea96b1ee4 /jcmaster.c
parent5ead57a34a398aa798f35bd7a6abad19b2e453e2 (diff)
The Independent JPEG Group's JPEG software v6b with arithmetic coding support
Diffstat (limited to 'jcmaster.c')
-rw-r--r--jcmaster.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jcmaster.c b/jcmaster.c
index aab4020..366f7c0 100644
--- a/jcmaster.c
+++ b/jcmaster.c
@@ -433,7 +433,7 @@ prepare_for_pass (j_compress_ptr cinfo)
/* Do Huffman optimization for a scan after the first one. */
select_scan_parameters(cinfo);
per_scan_setup(cinfo);
- if (cinfo->Ss != 0 || cinfo->Ah == 0 || cinfo->arith_code) {
+ if (cinfo->Ss != 0 || cinfo->Ah == 0) {
(*cinfo->entropy->start_pass) (cinfo, TRUE);
(*cinfo->coef->start_pass) (cinfo, JBUF_CRANK_DEST);
master->pub.call_pass_startup = FALSE;
@@ -567,7 +567,7 @@ jinit_c_master_control (j_compress_ptr cinfo, boolean transcode_only)
cinfo->num_scans = 1;
}
- if (cinfo->progressive_mode) /* TEMPORARY HACK ??? */
+ if (cinfo->progressive_mode && cinfo->arith_code == 0) /* TEMPORARY HACK ??? */
cinfo->optimize_coding = TRUE; /* assume default tables no good for progressive mode */
/* Initialize my private state */