Skip to content

Commit

Permalink
Optimize scans by default only if Mozilla defaults enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fbossen authored and fbossen committed Mar 5, 2014
1 parent 5523494 commit febf346
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jcparam.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ jpeg_set_defaults (j_compress_ptr cinfo)
}

#ifdef C_PROGRESSIVE_SUPPORTED
cinfo->optimize_scans = TRUE;
if (!cinfo->use_moz_defaults) {
/* Default is no multiple-scan output */
cinfo->scan_info = NULL;
Expand Down Expand Up @@ -401,8 +400,11 @@ jpeg_set_defaults (j_compress_ptr cinfo)
jpeg_default_colorspace(cinfo);

#ifdef C_PROGRESSIVE_SUPPORTED
if (cinfo->use_moz_defaults)
if (cinfo->use_moz_defaults) {
cinfo->optimize_scans = TRUE;
jpeg_simple_progression(cinfo);
} else
cinfo->optimize_scans = FALSE;
#endif
}

Expand Down

0 comments on commit febf346

Please sign in to comment.