diff options
author | Guido Vollbeding <guido@jpegclub.org> | 1998-03-28 00:00:00 +0000 |
---|---|---|
committer | DRC <information@libjpeg-turbo.org> | 2015-07-27 14:40:46 -0500 |
commit | 1e247ac854f8e33682bcfea475f6bccc42377208 (patch) | |
tree | fabc3ff2ae389709298738bb287f8b9ea96b1ee4 /jcmaster.c | |
parent | 5ead57a34a398aa798f35bd7a6abad19b2e453e2 (diff) |
The Independent JPEG Group's JPEG software v6b with arithmetic coding support
Diffstat (limited to 'jcmaster.c')
-rw-r--r-- | jcmaster.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |